App Object

Purpose

The App object is a global COM object accessed with the App keyword.

Syntax

App

Description

App determines or specifies information about the application's title, version information, the path, and name of its executable file.

There can be one App object only. You cannot create another App object like:

Dim MyApp As New App

You can however assign the App object to a variable of type App. By setting another object variable to the same object, the reference count for that object is incremented. After using the object variable it should be set to Nothing to decrement the reference count.

Dim MyApp As App  ' a variable of Type App

Set MyApp = App   ' set to global App

' use it

Set MyApp = Nothing

There would be little use for this, though.

Properties/Methods

Arguments | AvailPageFile | AvailPhys | AvailVirtual | Comments | CompanyName | FileDescription | FileName | FileVersion | Forms | hInstance | InternalName | LegalCopyright | LegalTrademarks | Major | MajorRevision | MemoryLoad | Minor | Name | OriginalFilename | Path | PrivateBuild | ProdMajor | ProdMajorRevision | ProdMinor | ProdRevision | ProductName | ProductVersion | Revision | scArguments | scClear | scCommonPrograms | scCommonStartMenu | scDescription | scDirectory | scHotkey | scIconIndex | scIconPath | scPath | scPrograms | scRead | scShowCmd | scSpecialDir | scStartMenu | scWrite | SpecialBuild | TotalPageFile | TotalPhys | TotalVirtual | WinCompany | WinUser

Known Issues

Similar to mAlloc(-1) through to mAlloc(-4), AvailPageFile, AvailPhys, TotalPageFile and TotalPhys are currently broken in most versions of Windows after XP SP3. See the mAlloc() page for the workaround.

See Also

Assoc, Screen, mAlloc()

{Created by Sjouke Hamstra; Last updated: 09/05/2020 by James Gaite}