putting in varibles

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Bonobo
Posts: 2
Joined: Wed Apr 09, 2008 2:21 pm

putting in varibles

Post by Bonobo » Tue Apr 15, 2008 11:22 am

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

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Tue Apr 15, 2008 11:49 am

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
...

Bonobo
Posts: 2
Joined: Wed Apr 09, 2008 2:21 pm

Post by Bonobo » Tue Apr 15, 2008 12:19 pm

well, thanks a bunch Klaus. It seems to be doing what I need it to.

Post Reply