View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Hi
Code: |
"ISREDIT Line_After .zcsr = " New
|
The above command I used to insert a line.The Variable
contains a string, but that value is not being inserted.
What is the command I have to use, if I have insert a line after few lines?
I tried the below, it's not working
Code: |
"ISREDIT Line_After 2 = " New
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do not start a new topic on a totally unrelated thread.
DO not start a new topic in the wrong forum.
Set a variable to the required line number and use that instead of .ZCSR |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
I tried the below, it's not working
Code:
"ISREDIT Line_After 2 = " New
|
"its not working" is not very good debugging information. It should have added a new line after the second line in the file. |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
The below Variable has a value, but it's not being inserted, what could be the reason?
Code: |
Insrt = "QWERTY HOWERTY "||"'"||Text||"'"
ISREDIT "(Num) = "Cursor
ISREDIT "LINE_AFTER" Num + 2" =" Insrt |
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what does trace show? what is the RC after the line_after?
infact, what is the rc after the CURSOR also? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you put your cursor in the left hand number margin, or on the working screen area.
Try it doing both and see what happens. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Do you have a "MACRO" statement? |
|
Back to top |
|
|
|