Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What would be the best way to apply logic?
Message
From
13/09/2009 20:40:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/09/2009 08:06:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01423463
Message ID:
01423996
Views:
99
>>
>>If anyone is interested, I can post the function and table structure here.
>I am inrested.

See my reply to Nadya - message #1423625, which includes the validation function and the table structure.

> Also what kind of rules do you have there? anythng more involved then simple functions like [ not empty(xxx) ]

Any valid Visual FoxPro expression - not empty(FieldName) was just an example. The validation function EVALUATE()s any rule you write in the rule field. For more complicated stuff, I sometimes wrote a separate function, which I invoked from the validation table. But perhaps 90% of all validations can be done with simple expressions. In the latest incarnation, variables can be defined for later use. This allows simpler expressions, and avoiding doing the same lookup multiple times for several validation rules.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform