Hi, all. The system expects the trigger to return a value to a calling
procedure. Zero is as good as anything.
Albert
[email protected] wrote:
Dennis: I actually have no clue what the RETURN 0 is for.
This code is in my notes document, I've never had a reason to
use it yet, so this was just a copy and paste of someone else's
suggestion. I don't think I've ever used RETURN 0.
Karen
Thanks,
I’ve got a demo running nicely, thanks to you and Emmitt.
What is the 0 after your returns?
*From:* [email protected] [mailto:[email protected]] *On Behalf Of
*[email protected]
*Sent:* Wednesday, January 13, 2010 4:22 PM
*To:* RBASE-L Mailing List
*Subject:* [RBASE-L] - Re: date tracking question
I think a variable is the ONLY way. Here's example code:
SET VAR trigger_executed INTEGER
IF trigger_executed = 1 THEN
CLEAR VAR trigger_executed
RETURN 0
ENDIF
... {body of trigger}
SET VAR trigger_executed INTEGER = 1
RETURN 0
--- RBASE-L
=======================3D=======================3
D=
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
=======================3D=======================3
D=
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
=======================3D=======================3
D=
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
=======================3D=======================3
D=
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
=======================3D=======================3
D=