This has been driving me mad today and there is probably a simple solution that am missing.
I basically want to remove a group of icons from the screen but they might not yet have been created. Depends what the user did before clicking to next screen.
So I tried -
myGroup:removeSelf()
Get a error if the group doesn’t exist, so put this around it -
if myGroup ~= nil then
Got rid of the error but can not get rid of the group. I even put a print statement inside the if and it doesn’t print.
if myGroup ~= nil then
print("am in the IF statement")
myGroup:removeSelf()
end
Am confused. If I remove the if statement, I get a error on the removeSelf, saying myGroup doesn’t exist.
Dave [import]uid: 117617 topic_id: 22740 reply_id: 322740[/import]

[import]uid: 84637 topic_id: 22740 reply_id: 90742[/import]