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 DBPro Corner / Deleating Objects

Author
Message
monkeyboy
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 7th Dec 2004 02:55
Is there a way to delete all the objects u have made. I tried delete object 0 cause i thought 0 meant any object but didnt work
monkeyboy
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 7th Dec 2004 05:15
I would of thought this was an easy question although i cant work it out one of you must have used it before?
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 7th Dec 2004 05:21

function ObjectCleanup()

for Object = 1 to 10000
if object exist( Object ) = 1 then delete object Object
next Object

endfunction

Just put that code at the bottom of your program then just say ObjectCleanup() whenever you want to delete all the objects.
monkeyboy
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 7th Dec 2004 05:26
thnx Chris

Login to post a reply

Server time is: 2024-11-27 16:41:26
Your offset time is: 2024-11-27 16:41:26