Posts: 1,058
Threads: 367
Joined: Oct 2007
Function "tempf10" is called by macro "temp15" or - equivalent - by a toolbar. I wonder whether there exists a way to check if "tempf10" is running, inasmuch as QM-Threads window displays "temp15" only. Tnak you in advance for any advice.
Macro
temp15
Function
tempf10
Posts: 12,097
Threads: 142
Joined: Dec 2002
Macro
temp15
out "calling tempf10"
tempf10
out "tempf10 returned"
Function
tempf10
Function
Check_if_function_called_by_a_macro_is_running
lock tempf10 "" 0 ; err int running= 1
lock - tempf10
out running
Posts: 12,097
Threads: 142
Joined: Dec 2002
Maybe this is better.
Macro
temp15
out "calling tempf10"
tempf10
out "tempf10 returned"
Function
tempf10
#compile "__AutoResetVariable"
int + g_tempf10Running; AutoResetVariable x.Init ( g_tempf10Running 1 )
mes "Test"
Function
Check_if_function_called_by_a_macro_is_running
int + g_tempf10Running
out g_tempf10Running
Attached Files
AutoResetVariable.qml (Size: 5 KB / Downloads: 393)
Posts: 1,058
Threads: 367
Joined: Oct 2007
Perfect, many thanks indeed!