Page 1 of 1
I search for a function "if an object exists"
Posted: Fri May 19, 2017 11:53 am
by sinisrus
Hello,
Is there a function to know if a muiroyal object exists or not?
thank you
Re: I search for a function "if an object exists"
Posted: Fri May 19, 2017 11:53 pm
by airsoftsoftwair
No, but you are right, there should be one. RapaGUI has
moai.HaveObject() but MUI Royale is still missing such a function. I'll add it for the next update.
Re: I search for a function "if an object exists"
Posted: Sat May 20, 2017 9:38 am
by sinisrus
ok nice thank you
and the "setpointer" for muiroyal Is it still possible with the latest update 1.5/1.6?
Re: I search for a function "if an object exists"
Posted: Tue May 23, 2017 2:02 pm
by sinisrus
I need the function mui.HaveObject () to advance on my project it is possible to have a special version of muiroyal (os4 and os3) before the next update?
thank you in advance
Re: I search for a function "if an object exists"
Posted: Wed May 24, 2017 7:19 pm
by airsoftsoftwair
Sorry, that's not possible but you can easily implement such a function yourself by querying an attribute every object supports, e.g.
Notify.Version:
Code: Select all
Function HaveObject(x)
ExitOnError(False)
mui.Get(x, "version")
b = (GetLastError() = #ERR_NONE)
ExitOnError(True)
Return(b)
EndFunction
Re: I search for a function "if an object exists"
Posted: Thu May 25, 2017 10:28 am
by sinisrus
Perfect for me, I test this
Very thank you
I tested good wook very very thank
Re: I search for a function "if an object exists"
Posted: Wed Aug 23, 2017 8:24 pm
by airsoftsoftwair
Code: Select all
- New: Added mui.HaveObject(); this allows you to check whether the specified MUI object exists