Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you create a cursor with an alias?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00057358
Message ID:
00057535
Views:
30
>>>can you create a cursor with an alias so that use can refer to itby an alias name like: "sele thisalias"
>>
>>You can always:
>>Select 0
>>USE cursor1 AGAIN ALIAS thisalias
>
>Ed, you told me about implementing "ColumnCount=2" on a listbox
>How do I evaluate the 2nd column value? Would ?THISFORM.MYLISTBOX2.VALUE.2 do it?


Tim, the 'name' of a cursor IS an alias. A cursor is actually something like AB00458C.TMP in your temp directory (or in memory, not a file at all). If you wish to make it read/write then use Ed's USE .... AGAIN.... idea.

If you're using a 2 column listbox where column 1 is the display value (what you see) and column 2 is the bound value (what you get) then you can refer to them as MyLstBox.displayvalue and MyLstBox.Value.

If you have multiple columns and want to refer to ANY of them it will depend on your RecordSourceType. If it's a table/cursor then just refer to the field, as the record pointer will be on the correct record. If it's an array, then you need to use the list() method: MyArray.list(nRow, nCol). Check the Help for examples of the list() method.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform