Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
inserting and replacing lines of text from functions
#6
Here foreach should be used instead of for. Then you would have to use some extra code to increase n and break when it is > 100. Alternatively, instead of foreach, use str function getl to get n-th line:

Code:
Copy      Help
act win(" Notepad" "Notepad")
spe 10
'Y
str a
int n
str t tt
tt.getmacro("Chess3")

for n 1 101
,a.from("test" n)
,key (a)
,'Y
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,t.getl(tt n-1)
,;out "t now contains %s" t
,;.....
,;.....
,;.....
,;.....
,;.....
,key (t)
,'YYYYY


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)