Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I make a Multicolumn Combo
Message
From
26/07/2000 16:49:16
 
 
To
26/07/2000 16:23:05
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00397268
Message ID:
00397315
Views:
13
You won't be able to get the whole memo field, so you'll have to redesign the view a bit, e.g.
CREATE SQL VIEW myview AS ;
 SELECT charfield, memofield, LEFT(memofield,100) As memocombofield, etc... ;
 FROM mytable
Then change the RowSource as follows:
Combobox.RowSourceType = 6 && fields
Combobox.RowSource = "myview.charfield, memocombofield"
One nice thing about comboboxes with a RowSource pointing to a cursor - as the selected item changes in the combobox, the record pointer in the RowSource cursor moves accordingly. So if you need the actual memo field value, you can get it right from the RowSource cursor. e.g.,
** Combobox.Valid()
thisform.Edit1.Value = myview.memofield
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