Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait/macro sync issue
#2
I think it is because both macros are of type Macro.
Two items of type Macro cannot run simultaneously. One of them must be of type Function.
That is why wait does not wait. Sorry that QM does not give an error or warning here. :oops:

What to do now:
Open macro "Blank Report".
Open "Properties" dialog for it.
In "Macro properties" tab, check "Convert to function".
OK, Yes.
It renames the macro to "Blank_Report" (because function names cannot contain spaces). Change the name in the first macro.

You probably don't need to run the second macro in separate thread. You can simply call it as function.
Replace
Code:
Copy      Help
int i=mac("Blank_Report")
wait 0 H i ;;wait until report ready
to
Code:
Copy      Help
Blank_Report


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)