The Application object is the top object in the Stonefield Query object model. A reference to this object is passed to every event and data object script so the script can interact with Stonefield Query as necessary. User-defined scripts can access the Application object through the built-in SQApplication object. Through the Application object, a script has access to every other object in the object model.

Properties

NameData TypeDescription
ApplicationDataDirectoryCharacterThe path for Stonefield Query's data files, such as the users and roles tables.
ApplicationDirectoryCharacterThe path for the Stonefield Query program files.
ApplicationNameCharacterThe name assigned to the Stonefield Query project. This is the value specified in the Application Name configuration setting.
CanEditReportsBooleanTrue if the user can add or edit reports, False if not.
DataEngineObjectA reference to the DataEngine object.
ParametersObjectA reference to the Parameters collection.
ProjectDirectoryCharacterThe path for the open project's configuration files.
ReportsDirectoryCharacterThe path for the reports files.
ReportEngineObjectA reference to the ReportEngine object.
SerialNumberCharacterThe serial number for the current license.
ShortApplicationNameCharacterThe abbreviated name assigned to the Stonefield Query project. This is the value specified in the Short Application Name configuration setting.
TargetApplicationDirectoryCharacterThe target application's program directory. This value is blank if the Need Target Application Directory configuration setting is False.
UsersObjectA reference to the Users collection.
VersionCharacterThe Stonefield Query version number.

Methods

NameDescription
AddPropertyAdds a property to the Application object.
DecryptDecrypts a string.
EncryptEncrypts a string.
ExecuteExecutes an application.
GetINIValueReads a value from the specified INI file.
GetRegistryValueReads a value from the Windows Registry.
GetValuesCollectionReturns a values collection object.
PromptUserForValueAsks the user for a value.
SetINIValueWrites a value to the specified INI file.
SetRegistryValueSaves a value in the Windows Registry.
ShowErrorMessageDisplays an error message, similar to the MESSAGEBOX() function.
ShowStatusDisplays a message in the Reports Explorer status bar.
ShutdownTerminates the Stonefield Query session.
UpdateProgressBarUpdates the value of the progress bar in the Reports Explorer status bar.