A string is a string is a string

Peter Haworth pete at lcsql.com
Fri Jan 18 18:48:46 EST 2013


Hi Cal,
Be sure to strip the quotes out of the object name when you put it into the
variable.

Say you have -  field "xyz" -.  When you put the "xyz" into your variable,
be sure to get rid of the quotes or LC will take them as part of the object
name.

Pete
lcSQL Software <http://www.lcsql.com>


On Fri, Jan 18, 2013 at 2:29 PM, Cal Horner <calhorner at xtra.co.nz> wrote:

> I'm having a bit of a senior moment here folks.
>
> I've looked through lots of LC and RunRev documentation and I can't find a
> clear and simple definition of a string. Sometimes they have quotes around
> them and sometimes they don't. So what's the difference between a string
> and
> a literal?
>
> OK, now that you've had a good laugh,; hear me out.
>
> Using "selectedObject" I've extracted the long ID and the object name from
> the selected object.
>
> The name comes through as object type and "Object Name".  So
> programatically
>  the code will know what kind of object I've selected and what it has been
> named when the time comes to use it. I strip word 1 (the object type) out
> of
> the returned selection info and place it into a variable. This is to be
> used
> to determine which object I want to work on. Then I strip what is left (the
> object name) out and place it into a variable.
>
> But when I try to access the object name variable the IDE says it can't
> find
> it.
>
> I've tried the object name variable with quotes around it and I've tried it
> without quotes. Still no luck.
>
> Any hints, ideas or solutions?
>
>
>
>
> _______________________________________________
> 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