PointerToJSObject

Typehandler
DictionaryLCB
LibraryLiveCode Builder
Syntax
PointerToJSObject(<pPointer>)
Associationscom.livecode.emscripten
Summary

Convert a Pointer into a JavaScript object

Parameters
NameTypeDescription
pPointer

The Pointer to convert

Example
variable mButtonPointer as Pointer

public handler SetButtonText(in pText as String)
	variable tJSButton as JSObject
	put PointerToJSObject(mButtonPointer) into tJSButton

	EvalJavaScriptWithArguments("arguments[0].innerHTML = arguments[1]", [tJSButton, pText])
end handler
Values
NameTypeDescription
return

An value of type JSObject

Description

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