Hello,
Is there a function to know if a muiroyal object exists or not?
thank you
I search for a function "if an object exists"
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: I search for a function "if an object exists"
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"
ok nice thank you
and the "setpointer" for muiroyal Is it still possible with the latest update 1.5/1.6?
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"
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
thank you in advance
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: I search for a function "if an object exists"
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"
Perfect for me, I test this
Very thank you
I tested good wook very very thank
Very thank you
I tested good wook very very thank
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: I search for a function "if an object exists"
Code: Select all
- New: Added mui.HaveObject(); this allows you to check whether the specified MUI object exists