by blaarkies » 04 Nov 2021, 06:49
Scr1pter wrote: ↑28 Mar 2020, 08:09
Host.GUI.alert("My other message is: "+value); // Result = My other message is: [object Native_00000000003F0000_ScriptUplink]
Looking at the result, it seems that the `value` is an object. The `.alert()` function call probably expects a string, and when given an object instead, javascript will try to make a string out of that
- If `value` object has a `.toString()` method in it, javascript will use that to make a string value
- If not, javascript will say the string is `[object Object]`
With that being said, i have never seen the output like `[object Native_00000000003F0000_ScriptUplink]`, I am not sure what type of object that is.
Do you have more information on what type of program/interface is running?
[quote=Scr1pter post_id=319508 time=1585400975 user_id=80786]
Host.GUI.alert("My other message is: "+value); // Result = My other message is: [object Native_00000000003F0000_ScriptUplink]
[/quote]
Looking at the result, it seems that the `value` is an object. The `.alert()` function call probably expects a string, and when given an object instead, javascript will try to make a string out of that
- If `value` object has a `.toString()` method in it, javascript will use that to make a string value
- If not, javascript will say the string is `[object Object]`
With that being said, i have never seen the output like `[object Native_00000000003F0000_ScriptUplink]`, I am not sure what type of object that is.
Do you have more information on what type of program/interface is running?