multiple text to table?

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
smash
Posts: 99
Joined: Tue Aug 19, 2008 5:18 am

multiple text to table?

Post by smash » Thu Aug 28, 2008 12:20 pm

what is the script for asking multiple test boxes (info in text boxes) from one card, and being put into a column table on another page with a click of a button?
thank you

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Aug 28, 2008 5:11 pm

The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

smash
Posts: 99
Joined: Tue Aug 19, 2008 5:18 am

Post by smash » Thu Aug 28, 2008 7:00 pm

LOL mark,
now i did try that LOL
but i cant work out the comand i need for this to happen.
this is not a choice combo box, but just a single button command.
so i want to simply click button, and many different text from different text buttons to go into a table.
i just keep getting error commands no matter what i try
cheers

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Aug 28, 2008 8:32 pm

Smash,

You have to call the function. If you want it to run after a click of the mouse, you probably want to use the mouseUp handler. Put the following line in the mouseUp handler:

Code: Select all

put joinTable(fld 1,fld 2,fld 3, fld 88) into fld "Whatever" of cd "Some Card"
Of course, you will have to change the field references. You may need to refer to

field "Some field" of cd "Some Other Card" of stack "Some Stack"

or you can use field numbers if the current card contains these fields.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

smash
Posts: 99
Joined: Tue Aug 19, 2008 5:18 am

Post by smash » Thu Aug 28, 2008 8:39 pm

ok thanks mark
works a treat
thank you

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Aug 28, 2008 11:28 pm

You're welcome :-)
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply