Please , let me ask you , is there any way one can remove a specific user-defined-object (class) ? You see , I have created a Class called Room and during run time I create plenty of such rooms (I handle them through a collection) . However , there are times I have to remove some such objects (rooms) . Up to now I simply go through the entire collection until I find the room I want , by using the For each statement and compering the MyName property of each room .
However , I wonder if there is any simpler way to do that . Let me specify that the Rooms I want to remove are already defined on specific variables , so one can immediately select them (that is avoiding code using the For each statement for the entire collection) . So , for example , I wonder if I could use something like this :
Kill Room200
(on which Room200 is an already defined variable referring to the Room class I want to remove)
However , I wonder if there is any simpler way to do that . Let me specify that the Rooms I want to remove are already defined on specific variables , so one can immediately select them (that is avoiding code using the For each statement for the entire collection) . So , for example , I wonder if I could use something like this :
Kill Room200
(on which Room200 is an already defined variable referring to the Room class I want to remove)