Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox - how to handle inactive id keys?
Message
De
17/03/2009 09:25:28
 
 
À
16/03/2009 23:40:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01388586
Message ID:
01388648
Vues:
126
This message has been marked as a message which has helped to the initial question of the thread.
>How can I set up a combobox so that when adding new records to an input form, it will only display choices which are "active" in the choice table, but when viewing old records in the form, it will need to display the value of the choice, even if that choice is now disabled?
>
>The fields in the Choices table are:
>
>status ('A' for Active or 'I' for Inactive)
>id
>description
>
>Choices.id is the bound column, and it is bound to an 'id' field in the LineItems table.

You may refill the combobox at the point of showing next record ('refresh' point). At that point, you populate the combo with all active record choices, plus one (if it is not active) for this record.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform