Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox with numerical value in a range
Message
De
23/06/2011 12:03:12
 
 
À
22/06/2011 17:50:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01515561
Message ID:
01515714
Vues:
59
>>Hi everybody,
>>
>>What is the simplest way to ensure that the textbox value I can enter is within 0-32,767 range?
>>
>>I see RangeLow/RangeHigh methods, but may be I just need to code Valid method instead?
>>
>>Thanks in advance.
>
>return between(this.value, 0, 32767)

And of course there the less-obvious version (that a person who codes VFP as if writing in assembler might write)...

return bitand(this.value,bitnot(0x7fff))==0
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform