Re: Storing and object reference in a var

2017-01-25 Thread Sannyasin Brahmanathaswami via use-livecode
Edit; get a grip on creating custom visual effect that I can use "all over the place" by creating an external script/text stack - Exactly I'm studying scripts by some "pros" (Jacque, David, Malte-animation engine) in order to get a group on creating custom visu

Re: Storing and object reference in a var

2017-01-25 Thread Sannyasin Brahmanathaswami via use-livecode
Exactly I'm studying scripts by some "pros" (Jacque, David, Malte-animation engine) in order to get a group on creating custom visual effect that I can use "all over the place" but creating an external script/text stack I've been doing server side script for so many years, the whole UI coding i

Re: Storing and object reference in a var

2017-01-25 Thread Bob Sneidar via use-livecode
I want to create a variable called tTargetField so I use put "Hello" into tTargetField Now I want to put something into a field so I create a variable called tTargetField2 and put the long id of field "foo" into tTargetfield2 Then to put something into the field I put "Hello" into tTargetField2

Re: Storing and object reference in a var

2017-01-25 Thread dunbarx via use-livecode
Hmmm. SetProps notwithstanding, one could; on mouseUp put the name of fld 1 into hh set the abc of hh to "xyz" end mouseUp This will indeed create a custom property (abc) of field 1 and set it to "xyz". In this case LC evaluates the variable "hh" as an object reference. I would have though

Re: Storing and object reference in a var

2017-01-24 Thread Mike Bonner via use-livecode
(mostly to solidify the memory for myself) set the text of tObjectReference gives the engine enough clue to know that you're setting a property (set the text of) so the next thing needs to be an object reference. put "fred" into tObjectReference is ambiguous because you can put fred into tname or a

Re: Storing and object reference in a var

2017-01-24 Thread William Prothero via use-livecode
Agreed. Please enlighten. I had this problem when getting the controls in a group, parsing out the fields, then trying to get the contents. I did this because I had some fields named the same, but they were in different groups, so I wanted only the one in the specified group. Bill > On Jan 24,

Re: Storing and object reference in a var

2017-01-24 Thread dunbarx via use-livecode
I am not sure what you mean. Both lines of code seem fine. What is not working? Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Storing-and-object-reference-in-a-var-tp4711908p4711919.html Sent from the Revolution - User mailing list archive at Nab

Re: Storing and object reference in a var

2017-01-24 Thread Sannyasin Brahmanathaswami via use-livecode
ha! duh! I need to go body surfing for a day and get away from the code … I'm "losing it" Put "hello" into tTargetField# replace the long id in the var with "hello" sheesh… this get set prop thing has a lot of power, one day I'll wrap my head around it. On 1/24/17, 12:57 PM, "use-

Re: Storing and object reference in a var

2017-01-24 Thread Dr. Hawkins via use-livecode
On Tue, Jan 24, 2017 at 4:19 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > But better news: Zombies will buy anything. We'll be rich. I think the average zombie has far less money than my average bankruptcy client . . . they always seem to get cheated by the prior

Re: Storing and object reference in a var

2017-01-24 Thread J. Landman Gay via use-livecode
On 1/24/17 6:12 PM, Monte Goulding via use-livecode wrote: On 25 Jan 2017, at 10:58 am, Richard Gaskin via use-livecode wrote: Good news: In v10 the LiveCode language will be reduced to a single command, "build", which will automatically build whatever you're imagining. Bad news: Requireme

Re: Storing and object reference in a var

2017-01-24 Thread Monte Goulding via use-livecode
> On 25 Jan 2017, at 10:58 am, Richard Gaskin via use-livecode > wrote: > > Good news: In v10 the LiveCode language will be reduced to a single command, > "build", which will automatically build whatever you're imagining. > > Bad news: Requirements for the new interface include a state-issu

Re: Storing and object reference in a var

2017-01-24 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > On Jan 24, 2017, at 14:57 , Monte Goulding wrote: > > You are writing ambiguous code and the engine can’t read your mind ;-) > > Not until V10 anyways. Good news: In v10 the LiveCode language will be reduced to a single command, "build", which will automatically build what

Re: Storing and object reference in a var

2017-01-24 Thread Bob Sneidar via use-livecode
On Jan 24, 2017, at 14:57 , Monte Goulding via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: You are writing ambiguous code and the engine can’t read your mind ;-) Not until V10 anyways. Bob S ___ use-livecode mailing list use-livecode@

Re: Storing and object reference in a var

2017-01-24 Thread Monte Goulding via use-livecode
> On 25 Jan 2017, at 9:53 am, Sannyasin Brahmanathaswami via use-livecode > wrote: > > put the long id of fld "daily-lesson-text" into tTargetField > put "Hello" into tTargetField > > what am I doing wrong? You are writing ambiguous code and the engine can’t read your mind ;-) Try: set the