Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with value selection in combobox (dropdown list)
Message
De
10/04/2008 10:38:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01309660
Message ID:
01309700
Vues:
17
>>And it doesn't only when I want to select first value - sometimes values is not changing - is it a bug of VFP?
>>
>>I have never run into this problem.
>>
>>How is your combo box set us? RowSource, RowSourceType, BoundColumn, BoundTo, ControlSource?
>
>
>ADD OBJECT cmbpirkejas AS mcf_combo WITH ;
> BoundColumn = 2, ;
> ColumnCount = 1, ;
> BoundTo = .T., ;
> Name = "cmbPirkejas"
>
>
>PROCEDURE cmbpirkejas.Init
> SELECT SPACE(70) AS pavad, SPACE(7) AS kod FROM organizac ;
> UNION ;
> SELECT pavad, kod FROM organizac ;
> ORDER BY 1 ;
> INTO CURSOR cMok
>
> This.RowSourceType = 2
> This.RowSource = "cMok"
> This.Value = cMok.kodas
>ENDPROC
>
>PROCEDURE cmbpirkejas.Valid
> ThisForm.requery_grid()
>ENDPROC
>
>

>
>I saw this bug working over a Remote Desktop connection and working directly

I would try to call Requery_grid from the LostFocus event.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform