I’d like to be able to reference the name of the currently executing Proc/Func/Trap with a simple call (see example below). Is there a function similar to “ArgName” that will work in this manner?
ex:
PROC TestProcName()
VAR string name;
name:=CurProcName();
TPWrite "Current Proc is "+name;
!rest of code
ENDPROC
Expected on pendant: “Current Proc is TestProcName”
I don’t know of anything built into RAPID, could you store the name in a global variable?
This implementation would require re-work of every function you use, which is probably extensive.
It would also require careful thought of error handling, error handling with long jump etc.
Do you just need to print the current function to the screen?
You can also try a Screenmaker Screen if you are using IRC5. You will have to modify/add variables to your system to get this screen working as you want it.
This is what I have done on my system to make my life a bit easier.