Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box again......
Message
De
19/11/1996 13:19:23
 
 
À
19/11/1996 12:31:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00012708
Message ID:
00012781
Vues:
43
>>Generally if you have RowSource- alias(field) you don't need to REFRESH. Use REQUERY if source changed. If you just skip a record, you could refresh in code: cmb1.value=YourTable.field. It always works fine so we don't need in DisplayValue or Refresh.
>>If RowSource is Array you must refresh in code. Any time you want to jump programmatically from one array element to another you issue: cmb2.value=YourArray[nArray]
>
>Ed,
>One combo is fields and it works great. The other is an array filled by a select triggered by what the user selects in the first combo box. The problem is when I skip to the next record and come back my array combo box is not displaying a value. I tried several ideas from books and MS KB source but to no avail. I'm not sure I can tie the value directly to the array. The array will change depending on the users choice in the first combo box. e.g. Dept the the array is only those sections in the Dept.
>
>Thanks for the idea,
>
>Larry
>US EPA
>Region 6 - Dallas, Tx

Issue command:
thisform.cmb2.value=YourArray[nArray]
any time you want to show initial value for combobox.
There is no reason why it will not work!
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform