dumb question #1

jbv jbv.silences at club-internet.fr
Tue Jun 6 17:04:59 EDT 2006



Josh,

This is indeed surprising, but my guess is that there's some logic behind :
in your first example, you concatenate 2 strings, and the target of the
line is a fld, so Rev considers that a string needs to be put into a fld...
IOW the "string" attribute remains...

in example 2, you're dealing straight with a variable content, which means
that the "dtring" attribute has disapeared somewhere along the way...
and in that case, Rev deals with the variable content which happens to
be a path...

This is my best explanation so far...

JB

> I'm going to ask some dumb questions, I am still fuzzy on paths and
> some basic variable issues:
>
> After this:
>
>      answer file "locate the .htm file for me please" as sheet
>      put it into htmPathFile
>
> if i put:
>
>      put URL "file:" & htmPathFile into fld "htm"
>
> this results in the path & filename going in the field, not the
> contents of the file.
>
> ----
>
> 2.
>
> but this:
>
>      put "file:" & htmPathFile into tFile
>      put URL tFile into fld "htm"
>
> results in the actual text content of that file being put in.
>
> ----
>
> I don't understand why they are different?!?
> ____________________________________




More information about the use-livecode mailing list