Post by Stefan on Feb 11, 2021 13:39:06 GMT -5
Observed on version 21026.
I'm having some bother with FIND p'@' PREV 1
This sounds totally daft, but the above command doesn't always find the nearest alphabetic char in column 1.
The actual character in col 1 to be found has no bearing on the matter.
Example: (keep the data and line spacing asis)
EnvDecode: PROCEDURE EXPOSE (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN entry
KB2GB: PROCEDURE EXPOSE (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN entry
HH_MM_SS: PROCEDURE EXPOSE (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN entry
OutTrap: PROCEDURE EXPOSE (gblvars) (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN resp.0
ArgDef: PROCEDURE EXPOSE (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN def
GetKeywordArgs: PROCEDURE EXPOSE A. (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN 0
GetFolderNames: PROCEDURE EXPOSE (gblvars) (dbugVars)
IF !.DEBUG THEN !.prvL = SIGL
RETURN 0
1) Cut and paste the above into SPFLITE.
2) Enter FIND p'@' 1 PREV in the command line (do not press <ENTER>)
3) Place the cursor on the last RETURN statement on line 34
4) Hit PF5 (or whatever key you mapped to RFIND)
You should be in on line 32 col 1 'GetFolderNames'
For me it jumps to line 17 col 1 'OutTrap'
5) Repeat the RFIND/PF5
You should be on line 27 col 1 'GetKeywordArgs'
For me it jumps to line 2 col 1 'EnvDecode'
For me it jumps to line 2 col 1 'EnvDecode'
If I keep pressing PF5, I get 'Top of data reached'
Subsequent PF5s do not restart the search from the bottom, or if they do, they do not find anything as the message 'Top of Data reached' remains.
PS: Works fine when going forward (NEXT) but not for reverse (PREV) search