Click or drag to resize

RuntimeState Class

X#
Container Class that holds the XSharp Runtime state
Inheritance Hierarchy
Object
  RuntimeState

Namespace:  XSharp
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 CLASS RuntimeState
Request Example View Source

The RuntimeState type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAlternate
The current Alternate setting.
Public propertyStatic memberAltFile
The current AltFile setting.
Public propertyStatic memberAnsi
The current ANSI setting
Public propertyStatic memberAppModule
The System.Reflection.Module for the main application.
Public propertyStatic memberAutoOpen
The current AutoOpen setting (used by the RDD system).
Public propertyStatic memberAutoOrder
The current AutoOrder setting (used by the RDD system).
Public propertyStatic memberAutoShareMode
The current AutoShareMode setting (used by the RDD system).
Public propertyBreakLevel
Current Break Level. Gets set by compiler generated code for BEGIN SEQUENCE .. END constructs.
Public propertyStatic memberCentury
The current Century setting (used in DATE <-> STRING conversions).
Public propertyStatic memberCollationMode
The current Collation mode (used by the RDD system).
Public propertyStatic memberCollationTable
Current collation table.
Public propertyStatic memberCompatible
The current Compatible setting.
Public propertyStatic memberCompilerOptionFOVF
The current compiler setting for the FOVF compiler option.
Public propertyStatic memberCompilerOptionFox2
The current compiler setting for the VO13 compiler option.
Public propertyStatic memberCompilerOptionOVF
The current compiler setting for the OVF compiler option.
Public propertyStatic memberCompilerOptionVO11
The current compiler setting for the VO11 compiler option.
Public propertyStatic memberCompilerOptionVO13
The current compiler setting for the VO13 compiler option.
Public propertyStatic memberConsole
The current Console setting.
Public propertyStatic memberCurrentWorkarea
Gets / Sets the current Workarea number.
Public propertyStatic memberDataSession
The DataSession information for the current Thread.
Public propertyStatic memberDateCountry
The current DateCountry setting mode (used in DATE <-> STRING conversions).
Public propertyStatic memberDateFormat
The current Date format
Public propertyStatic memberDecimals
The default number of decimals for new FLOAT values that are created without explicit decimals.
Public propertyStatic memberDecimalSep
The default number of decimals for new FLOAT values that are created without explicit decimals.
Public propertyStatic memberDefaultRDD
The default RDD.
Public propertyStatic memberDeleted
RDD Deleted Flag that determines whether to ignore or include records that are marked for deletion.
Public propertyStatic memberDelimRDD
Name of the RDD uses for DELIM operations.
Public propertyStatic memberDialect
Public propertyStatic memberDigits
The default number of digits for new FLOAT values that are created without explicit decimals
Public propertyStatic memberDigitsFixed
Logical setting that fixes the number of digits used to display numeric output.
Public propertyStatic memberDosCodePage
The 'DOS' Codepage. This gets read at startup from the OS().
Public propertyStatic memberDosEncoding
The DOS Encoding. This is based on the corrent DOS Codepage.
Public propertyStatic memberEof
Should text files, such as memo files be written with a closing EOF = chr(26) character.
Public propertyStatic memberEol
End of line character to be used by the runtime. Defaults to CR + LF (13 + 13).
Public propertyStatic memberEpoch
Date Epoch value that determines how dates without century digits are interpreted.
Public propertyStatic memberEpochCent
Date Epoch Century value. This gets set by the SetEpoch() function to the century in which the Epoch year falls.
Public propertyStatic memberEpochYear
Date Epoch Year value. This gets set by the SetEpoch() function to the Epoch year % 100.
Public propertyStatic memberExact
String comparison Exact flag that determines how comparisons with the single '=' characters should be done.
Public propertyStatic memberFieldDelimiter
Field delimiters for DELIM operations.
Public propertyStatic memberFileError
The last File IO error number
Public propertyStatic memberFileException
The last file IO Exception
Public propertyStatic memberFixed
Logical setting that fixes the number of decimal digits used to display numbers.
Public propertyStatic memberFloatDelta
Numeric value that controls the precision of Float comparisons.
Public propertyStatic memberHPLocking
The setting that determines whether to use the High Performance (HP) locking schema for newly created .NTX files
Public propertyStatic memberInternational
Current SetInternational Setting.
Public propertyStatic memberLastFound
The last file found with File(). This is the name that FPathName() returns.
Public propertyStatic memberLastRddError
Last error that occurred in the RDD subsystem.
Public propertyStatic memberLastScriptError
Last Script error that occurred .
Public propertyStatic memberLockTries
Number of tries that were done when the last lock operation failed.
Public propertyStatic memberMacroCompiler
Active Macro compiler
Public propertyStatic memberMacroCompilerIncludeAssemblyInCache
This property allows you to override the mechanism that decided if the types in an assembly should be cached The default behavior is that every assembly that is found is cached.
Public propertyStatic memberMacroResolver
Active Macro compiler
Public propertyStatic memberMemoBlockSize
The current default MemoBlock size.
Public propertyName
Retrieve state name
Public propertyStatic memberNetErr
Did the last RDD operation cause a Network Error ?
Public propertyStatic memberNewIndexLock
The setting that determines whether to use the new locking offset of -1 (0xFFFFFFFF) for .NTX files.
Public propertyStatic memberNoMethod
The name of the method that was called in the last late bound method call.
Public propertyStatic memberNullDateString
A cached copy of the string that is returned for empty dates, matching the current DateFormat
Public propertyStatic memberOptimize
RDD Optimize Flag
Public propertyStatic memberRefresh
The current SetRefresh flag.
Public propertyStatic memberRunningOnWindows
Public propertyStatic memberSafety
The current SetSafety flag.
Public propertyStatic memberScriptCompiler
Active Script compiler. Gets assigned from the ExecScriptFast() function.
Public propertySettings
The dictionary that stores most of the settings in the runtime state. The key to the index is the number from the Set Enum
Public propertyStatic memberSoftSeek
The current SetSoftSeek flag.
Public propertyStatic memberStringDelimiter
String delimiters for DELIM operations.
Public propertyStatic memberThousandSep
The Thousand separator
Public propertyStatic memberUnique
Should indexes by default be created with the 'Unique setting'.
Public propertyStatic memberWinCodePage
The Windows Codepage. This gets read at startup from the OS().
Public propertyStatic memberWinEncoding
The Windows Encoding. This is based on the corrent Win Codepage.
Public propertyStatic memberWorkareas
The Workarea information for the current Thread.
Top
Methods
Events
  NameDescription
Public eventStatic memberDialectChanged
This event is invoked when the runtime dialect is changed.
Public eventStatic memberOnCodePageChanged
This event is thrown when one of the codepages of the runtimestate is changed
Public eventStatic memberOnCollationChanged
This event is thrown when the collation of the runtimestate is changed
Public eventStatic memberStateChanged
This event is invoked when the runtime state is changed.
Top
Fields
  NameDescription
Public fieldStatic memberAutoLock
Delegate that gets called to automatically lock a record in the FoxPro dialect.
Public fieldStatic memberAutoUnLock
Delegate that gets called to automatically unlock a record in the FoxPro dialect.
Top
Remarks
Please note that unlike in most XBase products every thread has its own copy of the runtime state.
The runtime state from a new thread is a copy of the state of the main thread at that moment.
See Also