Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMBO BOX BLUES - Help needed NOW!!!
Message
From
08/07/2002 12:28:34
John Baird
Coatesville, Pennsylvania, United States
 
 
To
08/07/2002 12:12:43
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00676177
Message ID:
00676194
Views:
33
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform