Gregory
Number of posts : 9 Age : 41 Localisation : South Africa Registration date : 2010-05-12
| Subject: Deleting a System Object Fri May 14, 2010 5:32 pm | |
| Hello! Could anyone please help with an example of how to delete system objects? I have tried putting the delete statement in my program but i keep getting "Abstract Error" or "Access violation" after the object is deleted. The program still runs but i am unable to use the control. I have also tried putting the delete statements in a Sub but with no luck. I am not sure if this might be a bug with the "access violation error". Thanks for any help!
Last edited by Gregory on Fri May 14, 2010 5:39 pm; edited 2 times in total (Reason for editing : Left some information out.) | |
|
Jack Admin
Number of posts : 99 Registration date : 2007-07-01
| Subject: Re: Deleting a System Object Fri May 14, 2010 8:03 pm | |
| Normally, the statement to delete a system object is DELETE. You can try: - Code:
-
button 1 wait 1000 delete 1 and the button disappears after 1 second! Which kind of object did you delete? | |
|
Gregory
Number of posts : 9 Age : 41 Localisation : South Africa Registration date : 2010-05-12
| Subject: Re: Deleting a System Object Fri May 14, 2010 9:40 pm | |
| Hi. It is a form with two edit controls and a button. What i am trying to do is use the form as a dialog to get some user information. Once the user clicks "Save" im not sure how to delete the objects so that i can use them again if the user wants to store new information. I would post the code now but am not able to right now as its on a different pc. Im not sure what i could be doing wrong. | |
|
Jack Admin
Number of posts : 99 Registration date : 2007-07-01
| Subject: Re: Deleting a System Object Mon May 17, 2010 7:01 pm | |
| Here is an example of a form which contains 2 other objects (one edit and one button). When the button of the main form is clicked, the created form is deleted with its two objects without problem. - Code:
-
label del form 1:top 1,200:left 1,300 caption 1,"form with 2 objects" edit 2:parent 2,1 button 3:top 3,100:parent 3,1 button 4 caption 4,"Delete" on_click 4,del end del: delete 1 return | |
|
Sponsored content
| Subject: Re: Deleting a System Object | |
| |
|