if for "field" you mean something in a texbox, it's not correct.
in a textbox you can insert a field value but also a global variable, a function, a sum of these elements (for example)
so, look at the textbox properties, find sourcexpr property and then test the nullity of whatever you have inserted there
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
Comments
eg.
Record.TESTFIELD(Field, [Value])
Customer.TESTFIELD("No.")
u can set it by using property also.
Notblank of text box.
hope it will help u.
Rajesh Patel
in a textbox you can insert a field value but also a global variable, a function, a sum of these elements (for example)
so, look at the textbox properties, find sourcexpr property and then test the nullity of whatever you have inserted there
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
raj
Actually i am using the employee card. I want to validate the Employee.No.. text box
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
testfields("No.")
let me know if it not work.
Rajesh Patel
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
no problem.
Rajesh Patel
I tried IF TESTFIELD("No.") then
MESSAGE('Enter anything.!!!');
but. i am getting an error message indicating this is a void expression there must be true false expression.
These examples show how to use the TESTFIELD function.
Without Value:
Customer."No." := '';
Customer.TESTFIELD("No.")
This code returns an error message:
You must specify No.in Customer No.=''
Rajesh Patel
if testfields("No.") then
testfield function will not return value thats why it is giving u an error.
it will raise error message if u do not enter value in it.
the second way.
if employee."no."='' then
message('test');
end;
now is it clear ?
Rajesh Patel
take it easy, I was joking
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog