Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / User Defined Type

Author
Message
FlyingWild
12
Years of Service
User Offline
Joined: 29th Jul 2011
Location:
Posted: 21st Aug 2011 23:30
Hello all,

Does anyone know if it is possible to return a User Defined Type from a function? I seem to be getting errors. I seem to be able to return an array with a User Defined Type inside it.

Thanks you so much.
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 21st Aug 2011 23:33
Nope, you can't. UTD's need to be declared before any varibles using it, in the main.agc file.
XanthorXIII
AGK Gold Backer
12
Years of Service
User Offline
Joined: 13th May 2011
Location:
Posted: 22nd Aug 2011 07:04
So you can't do it locally within the function? Is that something that is coming up that could be implemented?

Login to post a reply

Server time is: 2024-03-29 09:46:54
Your offset time is: 2024-03-29 09:46:54