PointerFromJSObject

Typehandler
DictionaryLCB
LibraryLiveCode Builder
Syntax
PointerFromJSObject(<pObj>)
Associationscom.livecode.emscripten
Summary

Convert a JavaScript object value to a pointer

Parameters
NameTypeDescription
pObj

The object to convert

Example
public handler InitNativeButton()
	variable tButton as JSObject
	put EvalJavaScript("document.createElement('button')") into tButton

	variable tPointer as Pointer
	put PointerFromJSObject(tButton) into tPointer

	set my native layer to tPointer
end handler
Description

Use PointerFromJSObject to convert a JavaScript object to a variable of type Pointer.