Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox with numerical value in a range
Message
From
23/06/2011 12:03:12
 
 
To
22/06/2011 17:50:46
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01515561
Message ID:
01515714
Views:
58
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform