Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I filter a combo based on its current contents
Message
 
À
19/09/2006 15:48:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01155236
Message ID:
01155245
Vues:
13
>I have to restrict the status of loans in a current application and I'm not quite sure the best way to do it. The loans can have a status of "Pending", "Active", "Void" and "Loss". The tricky part is if the loan is currently "Active" the status can be changed to "Void" or "Loss" but not "Pending". The status is stored as cStatus_cId the loan file and uses a comboBox control on the form. Is it possible to filter the combobox based on it's current contents?


BTW, if you have ONLY these 4 values you could use OptionGroup with 4 buttons and enable./disable them depending of current value of the cStatus_cId field.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform