Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validation Rule
Message
From
21/02/1999 09:13:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/02/1999 22:45:32
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00189745
Message ID:
00189786
Views:
16
>Hi!
>
>I have a table called ORDERS DETAIL, with a field I have named DISCOUNT.
>
>I would like to set up a validation rule that only allows a number between 0 and 1, but each time I try I get an incorrect syntax error. I am building my first application if FoxPro and have not used the expression builder before and do not know how to create the expression properly. I would appreciate any help with this expression.
>
>Also, what data type would you recommend I use? I want the data to be a percentage (hence, between 0 and 1). How do I make the format for this field a percentage? I can do this very easily in Access, but I refuse to use Access anymore. I am dedicated to learning FoxPro!!!!!!!
>
>Thanks in advance for your help.
>
>Jason
Type numeric 4.2. Validation rule :
* Assuming fieldname is myPercentage
between(myPercentage,0,1)
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
Reply
Map
View

Click here to load this message in the networking platform