Page 1 of 1

"Identifier 'ScriptObject' not declared"

Posted: Wed Mar 08, 2017 10:47 pm
by rkriesel
The subject error message appears in the 9.0.0dp6 Extension Builder on macOS 10.12.3 when compiling the following LCB library:

Code: Select all

library community.livecode.rkriesel.libFoo

metadata title is "libFoo"
metadata version is "0.0.1"
metadata author is "Dick Kriesel"

public handler foo ( )
   variable tScriptObject as ScriptObject
end handler

end library
I expected that line of code to work, because it's a quote from the dp6 release notes in section "LiveCode Builder Host Library" on page 19.
http://downloads.livecode.com/livecode/ ... 0_dp_6.pdf

Is the problem in my setup or in the compiler? What's the corrective action?

-- Dick

Re: "Identifier 'ScriptObject' not declared"

Posted: Wed Mar 08, 2017 11:06 pm
by livecodeali
Hi Dick,

The ScriptObject type is implemented in the (optional) engine module, so you'll need to

Code: Select all

use com.livecode.engine
to be able to use that code.

Re: "Identifier 'ScriptObject' not declared"

Posted: Mon Mar 13, 2017 9:02 pm
by rkriesel
Thank you, Ali, for the quick reply with the answer I needed.

-- Dick