Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement