|
Post by Stefan on Feb 16, 2021 11:06:07 GMT -5
The SET ALIAS facility is very useful.
For instance, I simply cannot type the word RELOAD. A simple SET ALIAS.REL = RELOAD avoids repeated frustration.
I have a similar issue with LOCATE. I'd much prefer LOCATE to always place the target line at the top of the display. Hence I would like the "LOCATE" command to always perform as if I entered "LOCATE TOP" I figured I can achieve this with SET ALIAS.x = LOCATE TOP or SET ALIAS.x = "LOCATE TOP" where 'x' could be LT or even just L
but SPFLite does not support multiple strings like that, neither with nor without quotes. It is quite happy with SET ALIAS.x = LOCATE
Assuming I'm not just missing a trick, would you accept this suggestion...
Extend SET ALIAS.xxx = <string> to SET ALIAS.xxx = <String-1> [ <string-2> [...<String-n> ] ]
With or without quoting the strings, I don't mind.
I did manage to solve this specific issue by adding an L.MACRO which captures the operands, adds "TOP" if it isn't already there and than call LOCATE proper. Works really well 90% of the time, but fails in one important aspect...
LOCATE is allowed to execute when line commands are pending, but the L Macro is not. If I could move the functionality to an ALIAS command, all would perfect.
|
|
|
Post by Stefan on Feb 16, 2021 17:11:43 GMT -5
Well, you live and learn. I did try it with quotes, and received the "...contains embedded quotes" error message. But that attempt didn't have the blanks around the equals sign.
Thanks Robert - good call.
|
|
|
Post by George on Feb 17, 2021 10:08:45 GMT -5
Thanks Robert. One less to chase down.
|
|