Why won't this work.

Peter M. Brigham pmbrig at gmail.com
Fri Oct 30 09:49:53 EDT 2015


Yes. You have to use syntax that makes it plain to the engine that the variable tID should be evaluated before any action is taken. The only way to do that is to use language that can only be applied to controls, ie, setting a property. Since you can't set a property of a variable, the engine looks at the contents of the variable and sees that it's an object reference and proceeds on that basis.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig

On Oct 30, 2015, at 1:12 AM, Geoff Canyon wrote:

> To describe the other aspect of this, you can only use a variable
> containing a long id as a reference to the underlying object if you
> reference properties of the object. Hence why
> 
> put the long id of fld "test" into tID
> set the left of tID to 47
> set the vis of tID to true
> set the dontwrap of tiD to false
> set the htmlText of tID to "something"
> set the text of tID to "something else"
> 
> all work, but
> 
> put "some text" into tID
> 
> will just change the contents of the variable. I have vague memories of
> some exceptions to this, but it was a long time ago, so maybe I'm wrong, or
> LC has addressed the issues.
> 
> gc
> 
> On Thu, Oct 29, 2015 at 8:26 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> 
>> Try: set the text of tlongid to "my email"
>> 
>> Otherwise, you're just putting a value into your tlongid variable, the
>> same way you did with the long id of the field.
>> 
>> Regards,
>> 
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>> 
>>> On Oct 29, 2015, at 5:02 PM, Earthednet-wp <prothero at earthednet.org>
>> wrote:
>>> 
>>> Folks,
>>> 
>>> I tried
>>>    Put the long id of field "email" into tlongid
>>>    Put "my email" into tlongid
>>> 
>>> This does not work.
>>> 
>>> It works if I copy the long id and paste the second line in the message
>> box.
>>> Seems this should work.
>>> 
>>> Bill
>>> 
>>> William Prothero
>>> http://es.earthednet.org
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list