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 Studio Chat / [SOLVED] DeleteAllObjects() doesn't work

Author
Message
Kot
7
Years of Service
User Offline
Joined: 2nd Mar 2017
Location:
Posted: 1st Oct 2020 23:25
DeleteAllObjects() doesn't work. DeleteAllText() works on the same controls, so does DeleteAllSprites(). Or maybe I don't understand the way it should work?

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 2nd Oct 2020 05:06 Edited at: 2nd Oct 2020 18:15
This post has been marked by the post author as the answer.
How are you trying to use it/What are you expecting?

It works thusly under Classic 2020.04.30c :

(i don't think i've ever used "thusly" before )

add, from the help file:
Quote: "DeleteAllObjects

Deletes all objects created with an ID."

interestingly, if you
IE, no ObjectID, it still gets deleted with DeleteAllObjects(), contrary to the Command description. i thought that might have been your issue.
[My Itch.io Home] [#LowRezJamAGK2020]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
Kot
7
Years of Service
User Offline
Joined: 2nd Mar 2017
Location:
Posted: 6th Oct 2020 15:20 Edited at: 6th Oct 2020 15:21
OK, thanks, I thought edit boxes and text boxes are also objects, since they are created with an ID. Help system sucks, it hasn't been touched by the devs for years I think :/
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 7th Oct 2020 02:22 Edited at: 7th Oct 2020 02:23
the Help files are in need and i've sent a suggested change for the description omitting the reference to (3d) Object IDs as a (probably old) requirement where, as referenced above, i don't believe they are:
Quote: "Deletes all 3d objects. This also resets the auto object ID to 10000."

with that, DeleteAllObjects() is found in the 3D set of commands. when taken in context, i can't say that its functionality is mis-represented.
[My Itch.io Home] [#LowRezJamAGK2020]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
Kot
7
Years of Service
User Offline
Joined: 2nd Mar 2017
Location:
Posted: 7th Oct 2020 17:27
Some time ago I used VB and all the controls there - text boxes, edit boxes and all the rest were called "objects", so I misundesrtood "objects" in AGK. And as it is in the attached screenshot, there is no reference to 3D.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-23 16:49:10
Your offset time is: 2024-04-23 16:49:10