Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RangeLow Event?
Message
De
14/03/1998 11:03:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/03/1998 18:00:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00084619
Message ID:
00084684
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform