Syntax 

CreateObject(Class$)


Group 

Object 


Description 

Create a new object of type Class$. Use Set to assign the returned object to an object variable.


Parameters

Description

Class$ 

This string value is the application's registered class name. If this application is not currently active it will be started.


See Also 

Objects


Example

Sub Main

    Dim Sys

    Set Sys = CreateObject("FLEXOBJ.System")

    ' Assumes one or more open session

    If 1 = MsgBox("Close all sessions?", 1) Then

       Sys.Quit

    End If

End Sub