home *** CD-ROM | disk | FTP | other *** search
- /* LPEX macro to simulate normal editor function for a tab key */
- /* by Vincent Greene */
-
- 'extract cursorpos length tabs inserting'
-
- if (inserting = 'OFF') | (cursorpos > length) then do
- 'primitive nexttab'
- return
- end
-
- stop = 0
-
- do until stop > cursorpos
- last = stop
- parse var tabs stop tabs
-
- if stop = 'EVERY' then leave
-
- if stop = '' then leave
- end
-
- if stop = 'EVERY' then do
- stop = last
- parse var tabs increment
- if increment = '' then leave
- do until stop > cursorpos
- stop = stop + increment
- end
- end
-
-
- if stop \= '' then
- do x=cursorpos to stop-1
- 'primitive char " "'
- end
-
- exit 0