"Identifier 'ScriptObject' not declared"

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
rkriesel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 118
Joined: Thu Apr 13, 2006 6:25 pm

"Identifier 'ScriptObject' not declared"

Post by rkriesel » Wed Mar 08, 2017 10:47 pm

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

livecodeali
Livecode Staff Member
Livecode Staff Member
Posts: 192
Joined: Thu Apr 18, 2013 2:48 pm

Re: "Identifier 'ScriptObject' not declared"

Post by livecodeali » Wed Mar 08, 2017 11:06 pm

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.

rkriesel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 118
Joined: Thu Apr 13, 2006 6:25 pm

Re: "Identifier 'ScriptObject' not declared"

Post by rkriesel » Mon Mar 13, 2017 9:02 pm

Thank you, Ali, for the quick reply with the answer I needed.

-- Dick

Post Reply

Return to “LiveCode Builder”