Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox in grid
Message
From
28/05/2003 16:07:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
ComboBox in grid
Miscellaneous
Thread ID:
00793698
Message ID:
00793698
Views:
50
Hello,

I'm using a grid with comboboxes, and what happens is, that the value will be the recordnumber instead of the value form the key field.
The code is the following:
WITH .Column4
	.REMOVEOBJECT("Text1")
	.ADDOBJECT("TextNew","COMBOBOX")
	.SPARSE = .F.
	.CURRENTCONTROL = "TextNew"
	.TextNew.READONLY = .F.
	.TextNew.SpecialEffect = 1
	.TextNew.FontSize = 8
	.TextNew.BorderColor = RGB(255,255,255)
	.VISIBLE = .T.
	.TextNew.BoundColumn = 2
	.TextNew.ROWSOURCETYPE=6
	.TextNew.ROWSOURCE = "Users2.UsName,UsKey"
	.CONTROLSOURCE = "VSubtasks.SUUSKey"
	.HEADER1.CAPTION = "User"
	.WIDTH = 125
ENDWITH
So, the controlsource vsubtasks.suuskey will NOT be the value from Users2.UsKey, but it will be the record number in the Users2 table!
What do I need to do to make this work?
Christian Isberner
Software Consultant
Next
Reply
Map
View

Click here to load this message in the networking platform