Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a Source Procedure

Status
Not open for further replies.

wchestnut

Programmer
Aug 9, 2010
79
US
Hi, guys... remember, new to Clarion (5) here...

I have a Source Procedure I'm using in the Action of a Button where I use "Call a Procedure" and specify the name.

I also need to somehow call that same Procedure from Embedded Source code. I don't think I can use the CALL command because the Procedure with the Source Code is in the same EXE I'm calling from.

Thanks!
 
You may simply put the Procedure name in the code or
START(Procedure name, 25000)

the important thing is add the Procedure name to the procedures
(pressing procedures button) or declate it globally.




 
Hmmm... slight problem. I need to be able to execute the Procedure in the same thread -- like having the "Initiate Thread" unchecked in an Action. According to the Help, if I leave Stack omitted, it defaults to 10,000. Is that possible?
 
Hi!

If MyProcedure is the name of the procedure, calling it as ::

MyProcedure() opens it in the same thread AND

START(MyProcedure, 25000) calls it in a NEW thread.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top