Post by Ren on Jun 10, 2019 13:02:06 GMT -5
So, being a very lazy programmer, to the point I hate to move my cursor to the command line, especially if my cursor is already in the line number area.
Back in my REXX days, I had a line command implementations of RES, SAVE, CAN,
SWAP, and END. I have tried to replicate these functions in "Thin MACRO" with
with very limited success.
In all 5 cases, I get a message:
Pending Destination line range command
And the only one that does anything is RES, everything else leaves the command
in the Line Command area where is was entered, but nothing else. RES appears
to function as expected, (except for the message). The MACROs all look like:
'END.MACRO
If Is_Line_Cmd Then SPF_Cmd("END")
halt
I guess this is a case of having line commands named the same as a Primary
command, which is (currently) not supported.
But George is looking into it. (Remember my FF MACRO?)
so continuing on...
I also had an Edit MACRO, EQ, which would SAVE the member then EXECUTE the
member. So I decided to replicate the function using "Thin". I interrogate the file name extension, and if it is REX, I issue a SAVE followed by a RUN,
(using the SPF_CMD function). If it is MACRO, I issue a SAVE followed by the
name of the MACRO. In the case of the MACRO, I get:
RC=8: Already in macro mode. No nesting of macros allowed.
In the case of REX, I get:
SPFLite has encountered an execution exception (C0000005)
Last Interactions were:
KB Primitive: ENTER
Line Cmnd:
Primary Cmnd: SAVE
Module Back Trace:
06 | PCRE_REGEX_COMPILE
05 | PCMDSAVE
04 | CMDASSIGN
03 | PCMDMACRO
02 | CMDASSIGN
01 | POSTKEYBOARD
00 | MAINDKEYPROCESS
Attached is the EQ MACRO.
Not complaining. ...
Thanks again for your help and patience.
Back in my REXX days, I had a line command implementations of RES, SAVE, CAN,
SWAP, and END. I have tried to replicate these functions in "Thin MACRO" with
with very limited success.
In all 5 cases, I get a message:
Pending Destination line range command
And the only one that does anything is RES, everything else leaves the command
in the Line Command area where is was entered, but nothing else. RES appears
to function as expected, (except for the message). The MACROs all look like:
'END.MACRO
If Is_Line_Cmd Then SPF_Cmd("END")
halt
I guess this is a case of having line commands named the same as a Primary
command, which is (currently) not supported.
But George is looking into it. (Remember my FF MACRO?)
so continuing on...
I also had an Edit MACRO, EQ, which would SAVE the member then EXECUTE the
member. So I decided to replicate the function using "Thin". I interrogate the file name extension, and if it is REX, I issue a SAVE followed by a RUN,
(using the SPF_CMD function). If it is MACRO, I issue a SAVE followed by the
name of the MACRO. In the case of the MACRO, I get:
RC=8: Already in macro mode. No nesting of macros allowed.
In the case of REX, I get:
SPFLite has encountered an execution exception (C0000005)
Last Interactions were:
KB Primitive: ENTER
Line Cmnd:
Primary Cmnd: SAVE
Module Back Trace:
06 | PCRE_REGEX_COMPILE
05 | PCMDSAVE
04 | CMDASSIGN
03 | PCMDMACRO
02 | CMDASSIGN
01 | POSTKEYBOARD
00 | MAINDKEYPROCESS
Attached is the EQ MACRO.
Not complaining. ...
Thanks again for your help and patience.