Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COMBO BOX BLUES - Help needed NOW!!!
Message
 
À
08/07/2002 12:28:34
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676177
Message ID:
00676222
Vues:
26
>Hi guys:
>
>Still having trouble getting this thing to work. I have downloaded microsofts example of "How to make a combo lookup in a grid" - it doesn't work.
>
>I have played with all of the properties until I am cross-eyed. I need an example of real code that mplements a lookup in a grid. Has anyone done this?
>
>Here are the particulars again.
>2 Tables CurGrid1 - holds the information for display in the grid.
> Driver - holds the drivers information keyed to driverid C(10)
>
>
>WITH .grid
>     .column4.controlsource = 'curGrid1.drv_sname'
>     WITH .column4
>          WITH .cboDriver
>               .ControlSource = 'curGrid1.driverid'
>               .Columns       = 2
>               .ColumnWidth   = 50,0
>               .RowSource     = 'driver.drv_sname,driverid'
>               .RowSourceType = 6
>          ENDWITH
>     ENDWITH
>ENDWITH
>
>
>When the grid displays, the column shows all of the driver's shortnames. When I select a row, the combobox shows a dropdown list of driver's shortnames. When I select an item, the display chnages to show the new driver's shortname, but when I leave the row, it reverts to the original driver's name. Looking at the table, I found that it was writing, the driver's short name to the table instead of the driverid.
>
>Please help... I've wasted tons of time on this already.

John, try to set your column4.Bound = .f.
(if I understand correctly what you are trying to do.)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform