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.

Newcomers AppGameKit Corner / Clear out a type variable?

Author
Message
Golelorn
2
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 26th Mar 2019 16:09 Edited at: 26th Mar 2019 16:26
Is there a way to quickly clear out a type variable?



Thanks.



Point is moot, as I have moved the sprite generation to its own function. Unintended consequence is the variable will automatically be cleared.
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 26th Mar 2019 22:56
When i have the need to clear a variable i will generally define another type and call it Blank and never initialize it
Then when i want to clear our my type i add;
MyType = Blank
Golelorn
2
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 26th Mar 2019 23:56
Nice tip. Thanks.

Login to post a reply

Server time is: 2019-05-23 03:36:21
Your offset time is: 2019-05-23 03:36:21