View previous topic :: View next topic
|
Author |
Message |
GaneshMF
New User
Joined: 19 Jun 2009 Posts: 27 Location: Chennai
|
|
|
|
Hi all,
My requirement to retrieve the word in the current cursor position when the edit macro runs...
I just wanted to know how to retrieve the word instead of the whole line using "LINE .ZCSR".
How to retrieve the word? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Code: |
"isredit (R,C) = cursor" |
and the rest can be found in the manual, i.e. if the cursor is not on the datalines. No inclination to look it up. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
I just wanted to know how to retrieve the word instead of the whole line using "LINE .ZCSR". |
as Prino said, RT FM.
LINE returns the complete line.
as Prino indicated, retrieving the cursor position with CURSOR will give you a column number, which you can use as the starting position of a SUBSTR command.
[RANT]
The phrase x,y coordinates is not applicable with cursor positioning, that refers to graphs.
the correct terminology is Line number, column - which you may learn if you bother to read the manual.
Using your own terminology does not help.
[/RANT] |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
This forum is full of questions like this. Check this topic |
|
Back to top |
|
|
GaneshMF
New User
Joined: 19 Jun 2009 Posts: 27 Location: Chennai
|
|
|
|
Thank you very much for your replies... |
|
Back to top |
|
|
|