AppGlobalClassObject Package

The AppGlobalClassObject built-in package provides the App global object available in every twinBASIC project.

Interfaces

  • _App – Interface implemented by the global App object, exposing executable metadata, version information, instance handle, and related properties.

Properties

  • Build – Returns the build-number component of the project version. Read-only.
  • Comments – Returns the Comments string from the project’s version information. Read-only.
  • CompanyName – Returns the company name stored in the project’s version information. Read-only.
  • EXEName – Returns the name of the running executable, without path or extension. Read-only.
  • FileDescription – Returns the file description string from the project’s version information. Read-only.
  • HelpFile – Gets or sets the path to the Help file associated with the application.
  • hInstance – Returns the Win32 instance handle (HINSTANCE) of the running executable or DLL. Read-only.
  • IsInIDE – Returns True if code is executing inside the twinBASIC IDE, False if running as a compiled executable. Read-only.
  • LastBuildPath – Returns the full path to the output file produced by the most recent build. Read-only.
  • LegalCopyright – Returns the legal copyright string from the project’s version information. Read-only.
  • LegalTrademarks – Returns the legal trademarks string from the compiled executable’s version information. Read-only.
  • LogMode – Returns a LogModeConstants value indicating the active logging mode. Read-only.
  • LogPath – Returns the path to the log file established by StartLogging. Read-only.
  • Major – Returns the major version number component of the project version. Read-only.
  • Minor – Returns the minor version number component of the project version. Read-only.
  • ModulePath – Returns the full file-system path of the currently executing module. Read-only.
  • NonModalAllowed – Returns True if the application is permitted to display non-modal forms. Read-only.
  • OleRequestPendingMsgText – Gets or sets the body text of the dialog displayed when an OLE request has been pending too long.
  • OleRequestPendingMsgTitle – Gets or sets the title bar text of the dialog displayed when an OLE request has been pending too long.
  • OleRequestPendingTimeout – Gets or sets the milliseconds that can elapse before a pending OLE request dialog is displayed.
  • OleServerBusyMsgText – Gets or sets the body text of the dialog displayed when an OLE server is busy.
  • OleServerBusyMsgTitle – Gets or sets the title bar text of the dialog displayed when an OLE server is busy.
  • OleServerBusyRaiseError – Gets or sets whether a runtime error is raised instead of displaying a dialog when an OLE server is busy.
  • OleServerBusyTimeout – Gets or sets the milliseconds that can elapse before the OLE server busy dialog is displayed.
  • Path – Returns the directory containing the running executable, without a trailing path separator. Read-only.
  • PrevInstance – Returns True if another instance of this executable was already running when the current instance started. Read-only.
  • ProductName – Returns the product name stored in the project’s version information. Read-only.
  • RetainedProject – Returns True if the project is retained in memory after all externally-created objects are released. Read-only.
  • Revision – Returns the revision component of the project version. Read-only.
  • StartMode – Returns an Integer indicating how the application was started. Read-only.
  • TaskVisible – Gets or sets whether the application appears in the Windows taskbar and task list.
  • ThreadID – Returns the Win32 thread ID of the main application thread. Read-only.
  • Title – Returns or sets the application title shown in the Windows taskbar and task list.
  • UnattendedApp – Returns True if the application is running in unattended mode. Read-only.

Methods

  • LogEvent – Writes a message to the log target configured by StartLogging.
  • StartLogging – Begins logging application events to the specified target.