Add Method Example

The following example adds a picture to the WorkSpace by default.

Application.Documents.Add

The following example adds a Microsoft Word Document to the WorkSpace.

Application.Documents.Add "Word.Document"

The following example adds the subroutine MySub to Rect1's Procedures collection.

Rect1.Procedures.Add 1, "Private Sub MySub(x as integer, y as integer)"

The following example adds a line of code to the fifth line in Rect1's first event's event handler using the Lines collection.

Rect1.Procedures.Item(1).Lines.Add "Msgbox 2", 5

The following example adds a data Group to the Groups of the FixDataSystem FDS.

FDS.Groups.Add ("DataGroup1")