Saves a diagram as a "diag" file.
DiagramSave(DIAGEDT_MyDiagram, "diagram1.wddiag")
IF ErrorOccurred THEN
Error("File not saved: " + ErrorInfo())
END
Syntax
<Result> = DiagramSave(<Diagram> , <File>)
<Result>: Boolean
- True if saved successfully,
- False otherwise. ErrorInfo returns more details about the error.
<Diagram>: Name of the control or Diagram variable
Diagram to be saved. This parameter corresponds to: - the name of a Diagram Editor control.
- the name of a variable of type Diagram.
<File>: Character string
Full path of the "diag" file.
Business / UI classification: Neutral code