Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with combobox
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01669212
Message ID:
01669214
Vues:
54
>>When i rey to use a combox i can select from the list but every option i select nothing is show in the control. The value is correct and save to my controlsource but i can't see the description...
>>
>>The controlsource is a property of an object in my form and this is Init() method of the class i use for all these kind of combo
>>
>>DoDefault()
>>Local lcAlias
>>lcAlias = This.xcAlias
>>If !Used(lcAlias)
>> Select * From tTemp Order By Des1 Into Cursor (lcAlias)
>> Use In tTemp
>>EndIf
>>If Used(lcAlias)
>> This.BoundTo = .T.
>> This.RowSource = lcAlias + ".Des1,Id"
>> This.RowSourceType = 2
>>Endif
>>
>>The controlsource is set in the form where i use the combo to "thisform.oo.idzo" and thisform.oo.idzo contains a numeric value...
>>In this control i show two columns, whetre i wanto to show the value from the first and return in the controlsource the value of the second column...
>
>Try THIS.BoundColumn=2

Done, but witout effect.... It works and insert in Value property the correct id... the problem is only in what is shown on the screen... not the description of the selected id....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform