OK Sold. I never really understood the value of using long id's until Richard's
explanation, and an issue I was having as well with object resolution between
different modules and a back script.
Bob S
> On May 31, 2017, at 17:18 , Trevor DeVore via use-livecode
> wrote:
>
>> I almost alway
On Wed, May 31, 2017 at 5:17 PM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:
> I almost always pass long IDs as object references, e.g.:
>
> put the long ID of grc "portal-title-bkgnd" into tObj
> DoSomethingWith tObj
>
> Complete, absolute, unambiguous, and, if
I almost always pass long IDs as object references, e.g.:
put the long ID of grc "portal-title-bkgnd" into tObj
DoSomethingWith tObj
Complete, absolute, unambiguous, and, if used repeatedly, cached.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop,
On 5/31/17 4:06 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
One does not expect this to be improperly evaluated
put "graphic portal-title-bkgnd" into pObject
What do you do? And why?
I suspect the engine is trying to do subtraction since it can't tell you
are referring to a litera
Forgot the trailing "quote" after "portal-title-bkgnd" so it would actually
be
put "graphic" & quote & "portal-title-bkgnd" & quote into pObject
On Wed, May 31, 2017 at 3:49 PM, Mike Bonner wrote:
> try..
> put "graphic" & quote & "portal-title.bkgnd" into pObject
>
> As it is, you end up with p
try..
put "graphic" & quote & "portal-title.bkgnd" into pObject
As it is, you end up with pObject containg: graphic portal-title-bkgnd..
Meaning portal MINUS title MINUS bkgnd (since its unquited) and the engine
fails because its confused about what to do with it. Quoting the name of
the graphic