Here you have more details about my problem.
My function (in stored procedures section of my database) is:
----------------
FUNCTION UpdateSearchField
LPARAMETERS tcTableName, tcField1, tcField2, tcFieldSearch
LOCAL lcNameSearch, llOk, lcOnError, llError, lcField1Val, lcField2Val
llOk=.T.
RETURN llOk
----------------
The call of the function is put in the "Record Validation Rule" field
of my table (like below).
UpdateSearchField("MyTable","cname","cname2","cnamesearch")
----------------
Like you can see, I have simplified my function by returning only
a true value. No error possibility???? I got the same error:
"Record Validation Rule is violated". All the parameters are characters
type. As you know, the field iCle already calls a NewId function. Why
my very simple function refuse to work (or cannot be called)?