parentheses within string break value()
Scott Rossi
scott at tactilemedia.com
Sat Oct 24 20:58:14 EDT 2015
Is 123 a function? If yes, I believe you need to remove the quotes surrounding it.
Regards,
Scott Rossi
Creative Director
Tactile Media UX/UI Design
> On Oct 24, 2015, at 5:46 PM, Dr. Hawkins <dochawk at gmail.com> wrote:
>
> I am finding that parentheses within strings break value()
>
> put value ("Abc" & 45 & "123(def)")
>
>
> produces
>
>
> Script compile error:
>
> Error description: local: not a valid variable or constant name
>
>
> If I escape it as
>
> put value ("Abc" & 45 & "123\(def\)")
>
>
> it produces
>
> Abc45123
>
> I don't think that either of these is correct, or am I missing something?
>
> I am trying to assemble strings which have variable names using custom
> properties for using in database queries, such as
>
> "SELECT foo FROM " & tableName & " WHERE bar > 7;"
>
>
> and in my learned paranoia, I want to wrap each condition with parentheses
> when I have more than one (I got tired of remembering precedence rules for
> each language, and which ones are screwy, and . . .)
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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