Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messages of Validations
Message
From
08/09/1999 20:12:43
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00261658
Message ID:
00262675
Views:
21
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform