Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor field contents via listbox index
Message
From
19/12/2000 17:31:47
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455246
Message ID:
00455258
Views:
30
>I have a listbox with its rowsource as a SQL statement into a cursor. I used the example for creating a set of checkboxes in the list box from the MS knowledge base. The example shows how to display or use the value chosen using
ThisForm.List1.ListItem(i)
, where i is the index value of the chosen (checked) item in the list. My question however is how do I get the contents of a field in the cursor for the chosen record, that is not being displayed, rather than the displayed value?


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
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform