Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RangeLow Event?
Message
From
14/03/1998 11:03:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/03/1998 18:00:59
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00084619
Message ID:
00084684
Views:
29
>Could someone give me some sample code that would go
>in a RangeLow event and/or RangeHigh event?
*Rangelow
return iif(thisform.custType.value = "Premium",1000,10)
*Rangehigh
return iif(thisform.custType.value = "Premium",100000,999)
In short you could put there any code that would return a numeric value. As help says it's fired after lostfocus and control doesn't lose focus if returned value smaller (Rlow) or greater (Rhigh). If entered value doesn't obey the returned value an appropriate message displayed. To replace that message with yours, set notify off and use "wait win" or "messagebox()" in your code.
Help says for combos and lists it's evaluated when control receives focus and item with ret value is initially selected (I couldn't get this into work and don't use - didn't understand the necessity either).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform