Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running down a listbox
Message
From
24/03/2004 11:21:56
 
 
To
24/03/2004 09:25:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00889225
Message ID:
00889291
Views:
18
Hi Hurt.

I have the following code :

cText=""
FOR iCounter = 1 TO ThisForm.lbxListbox.ListCount
ThisForm.lbxListbox.listindex=iCounter
cText=cText + alltrim(ThisForm.lbxListbox.value) + CHR(13)
ENDFOR


Ammend the code as follows:
cText = ''
WITH ThisForm.lbxListbox
  FOR iCounter = 1 TO .ListCount
   cText = cText + ALLTRIM( .List[ iCounter, .BoundColumn ] )
  ENDFOR
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform