I would, as a matter of practice use STDCALL in the forms onBefore, using
the RBase ChkFunc fucntion to qualify if the Declaration has already been
made elsewhere.
----- Original Message -----
From: "Lawrence Lustig" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, March 24, 2009 12:34 PM
Subject: [RBASE-L] - RE: 3 Button Pause/Dialog?
<<
STDCALL will run in a forms EEP.
I finally had a chance to look at this. There is a problem, although it's
not the one the error message indicates.
STDCALL works fine from inside an EEP. However, it does not work under the
following circumstance:
1. The STDCALL call is placed inside a Stored Procedure.
2. The stored procedure is called without an assignment, like this:
CALL SetDropdownList('cbTest', 500)
If both those things are true, the STDCALL function fails with the message
"Illegal command in Entry/Exit Procedure." even though no EEP is involved.
The easy workaround is to do a meaningless assignment:
SET VAR vJunk = (CALL SetDropdownList('cbTest', 500))
which works.
--
Larry