You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use String.fromCharCode(keyCode) from the DOMAPI. The following code seems to work:
local s = window.String.new("abc")
print(s:charCodeAt(1))
98
But String.fromCharCode() is a static global and my attempts at calling this function have all failed:
window.String.fromCharCode(65) -> Attempt to call non-function
window.String:fromCharCode(65) -> Attempt to call non-function
window.extract() String.fromCharCode(65) -> Attempt to call non-function
window.extract() String:fromCharCode(65) -> Attempt to call non-function
window.String.fromCharCode(window.String, 65) -> Attempt to call non-function
Can you help me out?
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to use String.fromCharCode(keyCode) from the DOMAPI. The following code seems to work:
local s = window.String.new("abc")
print(s:charCodeAt(1))
But String.fromCharCode() is a static global and my attempts at calling this function have all failed:
window.String.fromCharCode(65) -> Attempt to call non-function
window.String:fromCharCode(65) -> Attempt to call non-function
window.extract() String.fromCharCode(65) -> Attempt to call non-function
window.extract() String:fromCharCode(65) -> Attempt to call non-function
window.String.fromCharCode(window.String, 65) -> Attempt to call non-function
Can you help me out?
Thank you.
The text was updated successfully, but these errors were encountered: