Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox in grid
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
ComboBox in grid
Divers
Thread ID:
00793698
Message ID:
00793698
Vues:
48
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform