Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric data in a ListBox
Message
De
03/03/2011 13:57:49
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01502526
Message ID:
01502540
Vues:
42
You can use cast(thisform.cboList.value as int) and there is no error if the value is already an int.

>I have found that when binding a listbox to a numeric value, and then later retrieving that value, it is always safest to use:
>
>lnValue=val(transform(thisform.cboList.value))
>
>as sometimes the listbox can return a numeric value, and sometimes it can return a character and I got tired of trying to remember when and what caused the difference.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform