GetObject Function

Syntax                  GetObject([File][, Class])

Group                   Object

Description           Get an existing object of type Class from File.

Pocket PC             Not supported.

Parameter              Description

File                          This is the file where the object resides. If this is omitted then the currently active object for Class is returned.

Class                       This string value is the application's registered class name.  If this application is not currently active it will be started. If this is omitted then the application associated with the file's extension will be started.

Example               '#Language "WWB.NET"
SubMain
    Dim App As Object
    App = GetObject(,"WinWrap.CppDemoApplication")
    App.Move 20,30 ' move icon to 20,30
    App = Nothing
    App.Quit       ' run-time error (no object)
EndSub