Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor field contents via listbox index
Message
From
19/12/2000 18:41:44
 
 
To
19/12/2000 17:31:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455246
Message ID:
00455274
Views:
30
Thanks Trey. That makes sense, however the MS example has the following code in it to go through the list looking for selected values...
isel=""
FOR i = 1 TO ThisForm.NumLstItm
   IF ThisForm.ItemSel(i)=1
       if i = 1
          isel = isel + ThisForm.List1.ListItem(i)
       ELSE
          isel = isel + ";  " + ThisForm.List1.ListItem(i)
       endif
   ENDIF
ENDFOR
... which does not move the record pointer. So, that's where I'm not sure how to get the field value in a loop like above. This code works for what I need (short of some small modifications), but I've tried to get to that "unseen" field there with no luck.

>>>>>>
Since the RowSource is a cursor, the record pointer moves in the cursor with the selected item in the listbox.
Say the cursor is called cuRowSource and you want the 2nd field, it would be
lcUnseenValue = cuRowSource.field2
>>>>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform