Application, paths and preferences
Keep distributable resources separate from writable user state. Settings is a scalar preference store, not a credential vault.
Read the task-based guide before using an isolated signature. Arguments are positional unless a signature explicitly marks an optional argument.
App#
Application identity and resolved runtime paths. Path is the application path, not a writable working directory.
Name, Version, Build, ApplicationPath, Path, ResourcePath, DataPath, CachePath, LogPath As String (read only)App compatibility identity#
PrevInstance currently returns False; it is not a cross-platform single-instance lock. FileDescription is empty. Missing or unparseable version parts return zero.
EXEName, ProductName, CompanyName, FileDescription, LegalCopyright As String (read only)
Major, Minor, Revision As Integer (read only)
PrevInstance As Boolean (read only)App.Title#
Initially App.Name; changes this runtime title, not the project manifest.
String (read / write)Screen#
Desktop projects only. ActiveForm can be Nothing. Screen has no ActiveControl member.
Width, Height As Double (read only)
TwipsPerPixelX, TwipsPerPixelY As Long (read only)
MousePointer As Integer (read / write)
ActiveForm As Form (read only)App.Migrations#
The migrations declared by the project. Apply them before querying their tables.
MigrationSet (read only)App.Quit#
Request application shutdown. Account for Form close cancellation.
Sub Quit()AppPaths.DataFile#
Resolve a safe application data filename.
Function DataFile(relativePath As String) As StringSettings.Get#
Return a stored scalar or the supplied default.
Function Get(key As String, defaultValue As Variant) As VariantSettings.Set#
Persist a supported scalar. Keys must be nonblank and at most 256 non-control characters.
Sub Set(key As String, value As Variant)Environment.NewLine#
Platform newline text.
String (read only)Environment.Get#
Only the allowed development/CI keys are exposed; other names return the default.
Function Get(name As String, defaultValue As String) As StringLog.Info / Warning / Error#
Write application diagnostics without including secrets or entire personal records.
Sub Info(message As Variant)
Sub Warning(message As Variant)
Sub Error(message As Variant)20f4bfed6b · Build manifestSources & maintenance
Original web explanation, reviewed against these repository sources. API tables and example files follow the implementation.
tests/McBasic.Compiler.Tests/UserTypeChecks.cstests/McBasic.Compiler.Tests/Vb6ScreenClassChecks.cstests/McBasic.Compiler.Tests/SubMainChecks.cstests/McBasic.Compiler.Tests/ApplicationObjectChecks.cssrc/McBasic.Runtime/McApp.cssrc/McBasic.Compiler/Binder.cssrc/McBasic.Runtime.UI/McScreen.cs