How to populate table fields across the row?

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
Just4Fun
Posts: 12
Joined: Tue Nov 25, 2008 1:14 am

How to populate table fields across the row?

Post by Just4Fun » Mon Jan 18, 2010 9:31 am

Hi There:

I'm trying to populate a date table for the "My First Stack" tutorial. The tutorial mentions a script to populate the month table, but the script is not included. I've managed to create an array that will populate the table with the days of the month, but I can't figure out how to display the results of the array across the field rows and not down the columns. That is: 1,2,3,4,5...

Not:
1
2
3
4
5

Is there some formatting option or syntax to help with this?

Also, is there any decent documentation that shows ,in readable form, Revolution's use of syntax? It is kind of hard to look things up in a dictionary when you don't know anything about the language. Surely, there must be a solid document somewhere online that I have missed. I've gone through everything that I can find both in the software help and on the web, but see nothing that addresses the heart of the language in a complete and understandable manner. I'm probably just missing it. I'd be grateful if someone could point me in the right direction. Revolution has been around for a long time so I'm assuming the complete language documentation and program usage must be located in a pdf or some such place. Otherwise, how can anyone learn to program with it?

Thank you...

-Rachel

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

Re: How to populate table fields across the row?

Post by Klaus » Mon Jan 18, 2010 1:12 pm

Hi Rachel,

the content of "table fields" is just TAB delimited text!

So you could simply do:
...
put "Column 1,Column 2,Column 3,Column 4,Column 5,Column 6,Column 7" into tItems
replace "," with TAB in tItems
put tItems into line 2 of fld "My Table field"
...

Get the picture?


Best

Klaus

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: How to populate table fields across the row?

Post by bn » Mon Jan 18, 2010 2:05 pm

Rachel,
if you want a book to read with many examples and a very good introduction to Revolution then there is still
Dan Shafer's book "Software at the speed of thought"

https://secure.runrev.com/store/browse/ ... OKSASTV001
in the RunRev store.
It is a bit pricey and it is a bit outdated. So not the features beyond maybe 2.6 explained. BUT I still recommend it for someone who looks for a systematic in depth introduction to Revolution in a book.
You might also have a look at the online scripting conferences:
http://www.runrev.com/developers/lesson ... nferences/
regards
Bernd

Just4Fun
Posts: 12
Joined: Tue Nov 25, 2008 1:14 am

Re: How to populate table fields across the row?

Post by Just4Fun » Mon Jan 18, 2010 11:08 pm

Thanks guys. I will take a look at the table solution and the book. Need all the help I can get. LOL

-Rachel

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

Re: How to populate table fields across the row?

Post by Klaus » Tue Jan 19, 2010 12:06 pm

Hi Rachek,

check and work through this:
http://www.runrev.com/developers/lesson ... nferences/

Great resources, now finally online again!


Best

Klaus

Post Reply