General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only