|
Post by George on Mar 14, 2019 14:22:04 GMT -5
Robert: I can sort of see your point, but how can we assume that PASTE .ZL should default to AFTER, maybe I want lines inserted before the last line. No, a BEFORE or AFTER is mandatory.
George
|
|
|
Post by George on Mar 14, 2019 16:02:36 GMT -5
Robert: Well, you doing it one way 99% of the time doesn't mean everyone does. My guess is that I do AFTER 75% of the time. Who knows what the rest of our users do.
I just don't see this as a place to add more kludgy code, SPFLite is crawling with stuff like that trying to match the way the real ISPF does things. If I described how the cursor is positioned after a simple Enter key, most of our users would be appalled at how ludicrously complicated it is. Yet if it didn't do it that way, there would be complaints because we're all USED to how it works without even thinking about it.
Besides, then we'd have to decide whether to document it or not, ad how extensively.
George
|
|
|
Post by nicc on Mar 14, 2019 16:45:43 GMT -5
Just to throw in my 2 pence-worth...I probably do A/B 50/50. I also move code to the end of my program but inside it so I would need it Before the END PGMNAME statement.
|
|
|
Post by George on Mar 16, 2019 10:32:58 GMT -5
Robert: You're not just asking for:
PASTE { BEFORE | AFTER ] line-reference
which would be a typical Default operand choice between two options, but you want the default to be different based on the line-reference.
e.g.
PASTE .ZL you'd like to be treated as PASTE .ZL AFTER
PASTE .ZF you'd like to be treated as PASTE .ZF BEFORE
We don't do that for any other commands that I can think of, I don't think we should do it here either.
George
|
|
|
Post by mueh on Mar 17, 2019 12:58:59 GMT -5
High George ! PASTE temp AFTER .ZL ERASE or even without ERASE gets Excessive operands . I Think NmOp for PASTE should be 4 instead of 2 in _ObjPCmdT.inc .
|
|
|
Post by George on Mar 18, 2019 11:09:52 GMT -5
MUEH: Correct, 2 was fine before we added extra operands and didn't adjust the max count. Fixed.
George
|
|