AnsweredAssumed Answered

Python get two values in a Search Cursor than go to next line

Question asked by deleted-user-MS0lE1F_0-sy on Jun 18, 2015
Latest reply on Jun 18, 2015 by iamurray

I am trying to write my getValues to a text element loop, but I want there to be two results per line before going to the new line.  I am having trouble figuring it out? I think I might new a while loop perhaps instead of a for loop, and probably need to use next() somewhere?  But that seems to just loop through each name and put one result instead of all four. 


I don't want this:   Anna                              I want this:   Anna  Ben

                             Ben                                                    Charlie Dora




I don't know what to use in here to achive this.

rows = arcpy.SearchCursor(Layer)
        textValue = ""
        for row in rows:
            textValue += row.getValue(Value1) + '\r\n'
        ParcelText2.text = textValue
        del rows