Variable holding a chunk

Jim Carwardine JimCarwardine at OwnYourFuture-net.com
Sat Jan 6 14:07:01 EST 2007


It's always driven me crazy and now I can't remember from the HC days
whether I had to use the value of expression or not.  It's just that each
time I use it, if it has been more than a few weeks, I have to relearn it.
Thanks everyone... Jim


on 1/6/07 2:49 PM, Bill Marriott wrote:

> I personally always "live" in the dictionary. It has a field at the top
> which filters stuff out for you as you type. For this specific function, I
> would probably type in "evaluate" because I want Rev to "evaluate" the chunk
> expression rather than to use it as a literal string. This gives you the
> merge() function, which isn't what you're looking for, but the value
> function is mentioned under the "See Also:" heading.
> 
> Incidentally, the merge() function works like mail merge in a word
> processor, but with expressions.
> 
> So,
> 
> put merge("line 2 of fld 1") gives you:
> line 2 of fld 1
> 
> but
> put merge("[[line 2 of fld 1]]") gives you:
> Bob
> 
> eventually, I just learned that "the value of" was what I wanted and haven't
> had to remember any tricks.
> 
> I am not sure why "evaluate" doesn't also return the value function; it
> probably should.
> 
> "Jim Carwardine" 
> <JimCarwardine at OwnYourFuture-net.com> wrote in
> message news:C1C4ABBA.9310%JimCarwardine at OwnYourFuture-net.com...
>> Hi Bill... I have 2.7.4 on MacIntel... Jim
>> 
>> 
>> on 1/5/07 6:03 PM, Bill Marriott wrote:
>> 
>>> you have a chunk *expression* in myvar :)
>>> 
>>> put the value of myVar
>>> 
>>> will work. As for the help file, what version of Rev do you have?
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 

www.TalentSeeker.ca   www.HiringSmart.ca/ns   www.KeepingTheBest.ca/ns
<http://www.OwnYourFuture-net.com>

Own Your Future Consulting Services Limited,
23 Shoal Cove Road, Seabright, Nova Scotia, Canada.  B3Z 3A9
Phone: 902-823-2339. Fax: 902-823-2139








More information about the use-livecode mailing list