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
7
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
Moderator
11
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
7
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: 2024-04-19 10:56:43
Your offset time is: 2024-04-19 10:56:43