Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on Combobox please!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00290010
Message ID:
00290775
Views:
12
>Hi David,
>
>>The Combobox is not actually bound to the numeric, Bill. I use a numeric to find the correct record in the cursor, but the combobox displays a character field (list of names). Changing the BoundTo did not help.
>>
>
>Sorry for the "Red Herring" <G> Let's try again.
>Could you post the structure of mycursor?
>
BoundColumn=1
BoundTo=.F.
ColumnCount=1
ControlSource=m.control_source_variable
RowSource=mycursor
RowSource=2

>Does the BoundColumn match the ControlSource? In other words, is >mycursor.myfield the first column in your cursor if BoundColumn=1?

Yes. The Cursor first field is NAMES which is of course a list of names. The second field is SURNAME, next is FIRSTNAME (for sorting purposes) and then MEMB_NUM, a unique code number for each name, and not available for the user, No field other than the first is visible to the user.

The cursor is an updateable cursor created using the USE ... AGAIN IN 0 technique. It is never saved to disk.

I just want to be able to
1) remember the name that is visible
2) change the list i.e the underlying cursor
3) check if the name is in the list and if so, make it visible, if not the first name in the list displays.

Thanks for your help

David
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform