DESTROY Method

Method for destroying an entity. Entities used by it (such as window events inside windows) are not destroyed. Use the TDESTROY method to destroy an entity and entities inside it.

object = Repository('DESTROY', entID)

The EXECUTE method has the following parameters.

ParameterDescription
Message'DESTROY'
entIDentID consists of four elements, which are '*' (asterisk) delimited:

* Application name
* Type ID
* Class ID
* Entity name

Methods are executed as follows: if class specific, execute at the class level; if type specific, execute at the type level; otherwise, execute the method.

null

Note: Always call the Get_Status function after calling Repository.

Repository() function, TDESTROY method, Get_Repos_Entities(). Also, Stored Procedures chapter in the Guide to Application Development.

/* Destroy the CENTERWINDOW_BACKUP stored procedure */

Declare Function Repository, Get_Status

AppID = @APPID<1>  ;* current application

TypeID = "STPROC"  ;* OpenInsight stored procedures

ClassID = ""  ;* Not Applicable

Stored_Proc_Name = 'CENTERWINDOW_BACKUP'
 

entid = AppID : '*' : TypeID : '*' : ClassID : '*' : Stored_Proc_Name
 

result = Repository("DESTROY",  entid)

*  test result

If Get_Status(ErrCode) then

   call msg(@window, 'Error Message returned: ' : ErrCode)

end
  • guides/programming/programmers_reference_manual/destroy.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1