Page 1 of 1

putting in varibles

Posted: Tue Apr 15, 2008 11:22 am
by Bonobo
Hi, first post.
I am sure this is a very silly question to ask, but I have been working with rev only for a very short time.

I have noticed that if I do something like

Code: Select all

put line 1 to 20 of bam into bum
put line 1 to 20 of wam into bum
what happens is that all the bam content gets replaced by the wam content. what can I do to ensure both sets of data remain in bum?
I have tried to use arrays instead of full variables, but I think that same happens.

thanks

Posted: Tue Apr 15, 2008 11:49 am
by Klaus
Hi Bonobo,

yes "put XYZ into ZXY" will replace the content of ZXY.

But you can:
...
put CR & line 1 to 20 of wam AFTER bum
...

This will create a new line and the put the new values AFTER your already filled variable "bum".

Hope that helps.


Best

Klaus

P.S.
And you can of course put something BEFORE another var!
Don't forget to add a new line:
...
put newValue & CR BEFORE my_filled_var
...

Posted: Tue Apr 15, 2008 12:19 pm
by Bonobo
well, thanks a bunch Klaus. It seems to be doing what I need it to.