Page 1 of 1

put text fields together

Posted: Sat Apr 05, 2008 3:47 pm
by reelstuff
Hello,

I am working with some fld values, and putting them together from one field to another, like this,

button one

Code: Select all

put the text of fld var_one into me
  put me into fld var_two
button two

Code: Select all

put the text of fld var_two into me
  put the text of fld var_three after me
  put me into fld var_four

this works well, however all the values from the text fields run together,

Code: Select all

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
This would work ok I think for parsing the script, however, from a readability standpoint, it would be nice to put something inbetween them so each value would appear on its own line like this,

Code: Select all

document.write('<object classid="clsid:D27CDB6EAE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
So now I am wondering how I could put the text of the fields on a separate line
so that the output is easier to verify that the code is correct.

Thanks in advance for any suggestions or pointers.

Tim

Posted: Sat Apr 05, 2008 4:21 pm
by BvG

Code: Select all

put return & field 2 after me

thank you

Posted: Sat Apr 05, 2008 4:25 pm
by reelstuff
BvG wrote:

Code: Select all

put return & field 2 after me
Thank you, again, that works great, Tim

Posted: Wed Apr 09, 2008 10:02 pm
by Nonsanity
Just as a simplification...

Code: Select all

put fld var_two & return & fld var_three into fld var_four
...If you don't really need all that text in the contents of the button (which usually isn't visible) for some other reason.

Posted: Wed Apr 09, 2008 10:14 pm
by reelstuff
Nonsanity wrote:Just as a simplification...

Code: Select all

put fld var_two & return & fld var_three into fld var_four
...If you don't really need all that text in the contents of the button (which usually isn't visible) for some other reason.
Hi, thanks for your reply, I probably need to change my approach to doing this and will likely do that, I am currently on the third innovation of this little experiment, thanks for the post, I will file that,

Tim