Hi folks,
I chose "Mastering Microsoft Visual Foxpro" CD and Tastrade sample application
to start learning VFP.
I thought using Tastrade classes to develop a small application (just for
learning purposes).
When I was checking how Tastrade handles Field Rules Validation I got an error.
The steps :
1 - Open the Employee form
2 - Add a new record
3 - Try to save this blank record
Code :
lcMessage = DBGETPROP(ALIAS() + "." + laError[3], "Field", "RuleText")
lcMessage = STRTRAN(lcMessage, '"', '')
Error :
FUNCTION ARGUMENT VALUE, TYPE OR COUNT IS INVALID.
Values :
ALIAS() - EMPLOYEE
laError[3] - "Last name cannot be empty."
The code was waiting for a field name in laError[3], not the "RuleText" itself.
Is this bug fixed in 5.0a ?
José Augusto Cavalcanti
Global Connection
jcavalcanti@ax.apc.org