>>The Message property of the field in the table is for that exact purpose.
>>The Message property takes a character stirng that will be displayed when the >>Valid rule fails.
Ok... I understood.
>>The Message property can be a call to a UDF or stored proc that returns a >>character string for the message.
Jim, what I really need is to set up the dialog box which displays these message... for example: I wouldn't like to see the fox icon in it, neither the buttons OK, REVERT and HELP. I'd like to see an icon of my application, and I'd like to change the captions of those three buttons...
I've tried to put the codes below in the Stored Procedure, but it doesn't work.
(in Message property, I've put CHECAATOR()).
FUNCTION CHECAATOR
RETURN 'There's some wrong in the field'
ENDFUNC
''Or''
FUNCTION CHECAATOR
LOCAL lnNrBotão
lnNrBotão = MESSAGEBOX( ;
[There's something wrong with the field]+chr(13)+;
[Choose OK to re-type or Cancel to Revert], ;
16+1+0, ;
[My Application])
DO CASE
CASE lnNrBotão = 1 && OK
Return
CASE lnNrBotão = 2 && Cancel
=TABLEREVERT(.T.)
Return
ENDCASE
ENDFUNC
Forgive me for this doubts, but VFP is beaten me :-)
Claudio Lassala