Information générale
Catégorie:
Codage, syntaxe et commandes
>>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...
>
>Don't use Select *, instead list only necessary field(s). Its much easier to work with, and it's faster.
Thanks for suggest, but this table has only two fileds...
I discovered whta is the problem. In ControlSource i have this value "ThisForm.oTab.Id" where ThisForm.oTab is an object containing all my fields. It is like a Scatter Name ThisForm.oTab..... But i don't know how to solve the problem....with all other kind of controls (textbox, editbox) i have no problem...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement