Hi Dave,
rather that "Run Macro" try "Run Application" (under miscellaneous) and then set the command line to execute
"path\\ebrun.exe" "path\\the_macro.ebm" "the_macro_params"
e.g.
"C:\\Program Files (x86)\\Micro Focus\\Reflection\\ebrun.exe" "%Userprofile%\\documents\\Micro Focus\\EXTRA!\\My Macros\\Hello.ebm" my function name
in your macro you can retrieve the macro parameter(s) via the variable command$, in this case Command$ = "my function name"
The big problem with this approach is that you can not call a "string",
i.e.
Call "Hello"
will not work, it has to be
Call Hello
So you will need a Select Case block to call the various function/subroutines,
e.g.
Declare Function HELLO()
Sub Main
Select Case UCASE(Command$)
Case "HELLO"
call Hello
Case Else
Msgbox "Function not found"
End Select
End Sub
Function HELLO()
Msgbox "Hi David"
End Function
Now having said all of that, I don't currently have Extra! installed, but if you play around with the syntax on the command line (in terms of the double and maybe single quotes), you will get this to work.
Note: While you are playing with this you may see rogue instances of ebrun in the task manager (from failed attempts). These may prevent subsequent attempted launches from working, you should kill these ebrun.exes and extra.exe and also ebmngr.exe, so that each attempt is a clean one with no previous attempts getting in the way.
As for using the dialog approach that is a completely different can of worms :-) Dialogs can be quite tricky depending on how deep you wish to get into them in terms of Modal/NonModal and event handling
Tom