Accessing AddressBook.data: javascript?
Ken Ray
kray at sonsothunder.com
Wed Jan 11 18:11:00 EST 2006
On 1/11/06 4:26 PM, "Raymond Griffith" <rgriffit at ctc.net> wrote:
> put "Core.pick(*Pick a Boy:*,[*Manny*,*Moe*,*Jack*])" into js
> do replacetext(js,"*",quote) as javascript
> put the result
>
> This is a favorite trick of mine. Having to put in all those "es and
> commas into a do-statement is tedious, and often makes the script
> unreadable. Using an unneeded symbol in the place of a quote and replacing
> it later improves readability tremendously.
Agreed, although I usually use the backquote (`) symbol (same as the tilde
key, but without the shift) because (a) I never use it for other things, (b)
it is *sort of* like a quote, and (c) it is what SuperCard uses in their
merge function to replace a quotation mark (wish we had *this* in Rev's
merge function!).
Anyway, a good suggestion in any event...
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list