The New construct type has been superceded by NewNet and NewWks. It has been retained for backward compatibility.
The Construct method tells Voxler which command to create. The Construct method is accessed from the CommandApi object. The New type allows the Voxler program to create a new Voxler file. This is similar to the File | New command.
The Construct method must be used in combination with the Option method and the Do or DoOnce method to create an object.
Syntax
object.Construct("New")
Construct Type
New
Parameter |
Type |
Description |
Path |
string |
Name of the module to be opened |
Example
This example creates a new Voxler file.
Sub Main
'Declares VoxlerApp as an object
Dim VoxlerApp As Object
'Creates an instance of the Voxler application object
'and assigns it to the variable named "VoxlerApp"
Set VoxlerApp = CreateObject("Voxler.Application")
Set VoxlerApp = GetObject(,"Voxler.Application")
'Make Voxler visible
VoxlerApp.Visible = True
'Access CommandApi
Set CommandApi = VoxlerApp.CommandApi
'Create a new Voxler document
CommandApi.Construct ("New")
CommandApi.DoOnce()
End Sub
Used by: CommandApi object
See Also