Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I make a Multicolumn Combo
Message
De
26/07/2000 16:49:16
 
 
À
26/07/2000 16:23:05
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00397268
Message ID:
00397315
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform