distinguishing a table field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

distinguishing a table field

Post by dunbarx »

Anyone ever need to determine whether a particular field is a table field?

There is a property in the inspector called "basicTableObject", but this is not in the dictionary, and asking for the value of that property makes LC think it is a custom property (the property is always empty).

Most fields that start out as ordinary fields have properties different from a plain vanilla table field, but those are all changeable, and therefore not reliable.

In other words, why is an explicit settable property in the inspector not in LC at all?

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

Re: distinguishing a table field

Post by Klaus »

Hi Craig,

looks like this checkbox only sets -> the cRevGeneral["table"] of that field to TRUE resp. FALSE, which LC obviously uses to distinguishing a table field. :D

That's why this is no LC property and thus not in the dictionary.


Best

Klaus
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: distinguishing a table field

Post by dunbarx »

Klaus.

Ah, thanks.

So the answer to my question is:

Code: Select all

answer the cRevGeneral["table"] of fld 1
This harkens back to a thread I created a while back, where the "CRevGeneral" custom property is sort of invisible until it is used. I will try to find that thread, and see if I can drill into my head when and where is can and should be used, or at least examined.

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

Re: distinguishing a table field

Post by Klaus »

dunbarx wrote: Tue Sep 04, 2018 10:01 pm So the answer to my question is:

Code: Select all

answer the cRevGeneral["table"] of fld 1
Yes.
There is a property in the inspector called "basicTableObject", but this is not in the dictionary
To be precise:
That is no property in the inspector, just a simple checkbox.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: distinguishing a table field

Post by dunbarx »

And just to beat a dead horse, I actually viewed both the common name and the LC property name for that non-property. One is: "basicTableObject" and the other is "Basic Table Object".

This made me think it had to be a real LC property, and not just not a property at all.

Craig
Post Reply