Table keywords missing from Dictionary?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 241
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK

Table keywords missing from Dictionary?

Post by thatkeith » Tue Nov 06, 2018 10:30 pm

LC 9.0.1

I'm exploring table fields, but the LC Dictionary seems to be missing a number of entries. When I type "cell" into the Dictionary's search field I get very little, and I don't get anything for cellEdit, cellFormat, and so on.

Where can I find info about these items and other table-related words, in particular stuff about addressing specific cells?
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
President, IVRPA.org

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5893
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Table keywords missing from Dictionary?

Post by dunbarx » Tue Nov 06, 2018 11:34 pm

Hi.

I do not think that "cell" is a native word in LC, however commonly we use it and think of it. As I just did, when talking about table fields, say, I always put it into quotes.

Anyway, that is likely the reason there is little said about it.

What are your specific questions? I understand what you mean generally. For example, the editable "cell" (see?) that appears when one is trying to type into a table field is actually a separate field that is sized for and overlies the "cell" (see?) of interest.

Craig Newman

bogs
Posts: 3105
Joined: Sat Feb 25, 2017 10:45 pm

Re: Table keywords missing from Dictionary?

Post by bogs » Tue Nov 06, 2018 11:57 pm

thatkeith wrote:
Tue Nov 06, 2018 10:30 pm
Where can I find info about these items and other table-related words, in particular stuff about addressing specific cells?
I hate to say it, but I was never able to locate information about the topic from what came with Lc past vers. 2.x.

Before I got that version, the best method I could recommend was to let your search engine do the walking...
Selection_079.png
Table field...
Livecode lessons has several good erm... lessons on fields which cover tables in fields, and Max's excellent wiki also has some good information.
dunbarx wrote:
Tue Nov 06, 2018 11:34 pm
I do not think that "cell" is a native word in LC, however commonly we use it and think of it...
Probably because that is how you might see it listed in the property inspector :wink:
Selection_080.png
cellEdit...?
Selection_080.png (12.73 KiB) Viewed 514 times
Image

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3273
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Table keywords missing from Dictionary?

Post by bn » Wed Nov 07, 2018 12:01 am

Hi Keith,

a tableField is "just" a tab delimited text.

Say you want to address cell 2 of column 2

that would be two tab delimited items in line 2 of your tableField
on mouseUp
set the itemDelimiter to tab -- don't forget this
put 2 into item 2 of line 2 of tText
put tText into field "yourTableField"
end mouseUp
in this way you can populate the tableField by script.

To query this:
on mouseUp
set the itemDelimiter to tab -- by now you already know this
put item 2 of line 2 of field "yourTableField"
end mouseUp
Kind regards
Bernd

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 241
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK

Re: Table keywords missing from Dictionary?

Post by thatkeith » Wed Nov 07, 2018 2:17 am

Huh. Okay, it’s clear that I need to rethink what I thunk about tables!

The reason I thought cellEdit and cellFormat would be valid words in the LCC language is because that’s what’s in the tooltips for certain checkboxes in the table inspector. Normally the words in those tooltips show the relevant script keyword for controlling stuff through code. It’s disappointing that this isn’t consistent.
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
President, IVRPA.org

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 241
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK

Re: Table keywords missing from Dictionary?

Post by thatkeith » Wed Nov 07, 2018 2:23 am

bn wrote:
Wed Nov 07, 2018 12:01 am
Hi Keith,

a tableField is "just" a tab delimited text.
But...
Hang on a second...
[SFX: mind blowing]

Thanks Bernd, this is a very cool revelation. Time for me to experiment!
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
President, IVRPA.org

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5893
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Table keywords missing from Dictionary?

Post by dunbarx » Wed Nov 07, 2018 4:18 am

ThatKeith.

If you really want to experiment, pull an ordinary field from the tool palette. Now go into the inspector and open the "table"pane. Click everything, and set the tabtops to about 50.

Voila. A table field is a field with certain properties set.

Craig

bogs
Posts: 3105
Joined: Sat Feb 25, 2017 10:45 pm

Re: Table keywords missing from Dictionary?

Post by bogs » Wed Nov 07, 2018 12:12 pm

Two of the lessons I found most helpful would be "Display Tab Delimited Text in a Table Field" and "Display a table in a field".
Image

Post Reply

Return to “Talking LiveCode”