DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete 2D-Table with script?

Hello.

I want to delete a 2D-Table with a script. I can create a 2D-Table with GRAPHOBJNEW, but how to delete it ?
Thanks in advance.
0 Kudos
Message 1 of 2
(3,415 Views)
To delete an Object in REPORT is very hard, because there exist no command to do this. But you can set the objektname to an empty string. Then the object is marked as deleted.

For iObjNo = 1 To ObjectNoMax         'Loop over all objects in DIAdem REPORT
sObjectName = ReportObj(iObjNo) 'Gets the object name
If sObjectName <> "" Then 'Be sure that object is not deleted
Select Case ReportObjType(iObjNo) 'Gets object type
Case "2D-Table"
ReportObj(iObjNo)="" 'Sets the Name to empty string
Case Else
'Do something else
End Select
End If
Next
Call PicUpdate()

If you only want to delete all data assignments in a report object use GraphObjChnClear(GraphObjName)

Eg.
For intObj=1 to ReportObjLast
Call GraphObjChnClear(ReportObj(intObj))
Next
0 Kudos
Message 2 of 2
(3,408 Views)