Strict Compilation Mode

Mark Wieder mwieder at ahsoftware.net
Sun Dec 1 22:19:05 EST 2013


Ender-

Sunday, December 1, 2013, 6:42:03 PM, you wrote:

> _local sPreviousPage, sSnapshot
> 


> __put item 2 of the filename of sPreviousPage into tPage

You can't do that. The compiler's parser will generate an error (ok -
I guess you've already discovered that) because "sPreviousPage" has to
resolve to an object reference at compile time, not at runtime. As far
as the engine knows, when you try to compile that, you're trying to
get the property of a local variable, and that's invalid. You can go
the long way around:

do "put item 2 of the filename of" && sPreviousPage "into tPage"

-- 
-Mark Wieder
 ahsoftware at gmail.com





More information about the use-livecode mailing list