View previous topic :: View next topic |
Author |
Message |
Anit1 Beginner
Joined: 20 Jul 2003 Posts: 4 Topics: 3 Location: India
|
Posted: Thu Feb 05, 2004 8:57 am Post subject: write a string starting from column 10 in a dataset |
|
|
I have to write a string at line 30 starting from column 10. I am trying to use ISREDIT for this.
I tried with below code. But not able to do it.
curl = 30
curc = 10
"ISREDIT CURSOR = " CURL CURC
"ISREDIT LINE .ZCSR = " string
It's writing at row 30 but starting from column 1. |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu Feb 05, 2004 10:05 am Post subject: |
|
|
Looks like LINE is taking you to begining of line represented ny .ZCSR. Why not do a right shift by 10. Or attach ten blanks to string. Or if you want to preserve first ten columns then attach that content to string. |
|
Back to top |
|
 |
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Fri Feb 06, 2004 3:16 am Post subject: |
|
|
Anit1,
The "ISREDIT LINE lptr = data" command has control only over the "rows" and not on the column. Hence you are having this problem.
Try this...
Code: |
"ISREDIT (L1) = LINE 30"
PARSE VAR L1 PRE +10 DUMMY
L1 = PRE || YOURSTRING
"ISREDIT LINE 30 = " L1
|
Another way would be to use :
Code: |
"LINE 30 = " STR1
"SHIFT ) 7 5"
"SHIFT < 7"
|
Hope this helps...
Cheers,
Coolman
________
starcraft II replays |
|
Back to top |
|
 |
|
|