General system variables

These variables can be used in any type of Sculptor program. Note that in the Reference Guide variables are indexed without the “sys.” prefix.

sys.Arg

Command line arguments of the current program

sys.AutoCancel

Determines if cancelling a dialog suppresses validation

sys.AutoEventCheck

Frequency of DDE message checks

sys.AutoFlush

Screen flushing option

sys.AutoValidate

Determines if validation performed on unchanged data

sys.AvailableBytes

Number of bytes available in sequential file, socket or pipe

sys.Cancel

Determines if operator can abort input with CANCEL key

sys.Captions

Turns window control help captions on or off

sys.CharSetEncodeFrom

Configure the internal Sculptor encoding

sys.CharSetEncodeTo

Configure the external Sculptor encoding

sys.ClosePending

Flag a validate and lose focus event before close event

sys.Col

Default subscript for the first dimension

sys.Currency

Code of the currency being used for display/input of money values

sys.CurrencyName

Name of the current active currency

sys.CurrencyRate

Exchange rate between active and main currencies

sys.CurrentControl

The control that has input focus

sys.Date

The system date

sys.Day

Day component of a date type field (obsolescent)

sys.DDETimeOut

Time-out value for DDE client requests

sys.Debug

Indicates if a program is running in debug mode

sys.Dim4

Default subscript for the fourth dimension

sys.DrawGraphicMode

Defines how graphic images combine with the background

sys.DrawTextMode

Defines how text or line graphics combine with the background

sys.EditMode

Set edit mode for data entry

sys.Errno

System error number

sys.Error

Sculptor error number

sys.EscChar

Escape character for get[field] # and put[field] # commands

sys.FirstDatabase

Pointer to the first database in the program

sys.FirstWindow

Pointer to the first window in the program

sys.FreeTextInputBuf

Value of free textbox field before function key pressed

sys.Hangup

Determines whether hangup interrupts enabled

sys.HDPUScale

The horizontal DPI scale.

sys.HostName

Network name of computer running the program

sys.HResolution

The horizontal resolution of the main display.

sys.IndexWrap

Determines whether subscripted fields wrap

sys.InputBuf

Value of field before function key pressed

sys.InputRow

Row number of text saved in sys.InputBuf

sys.Interrupts

Determines whether keyboard interrupts enabled

sys.IPAddress

Network address of computer running the program

sys.KeepAliveInterval

Interval to send keep alive messages through the open sockets

sys.Keyboard

Keyboard type currently in use

sys.LastSeparator

Character that terminated the last field read by a getfield # command

sys.LocalTime

System time in elapsed seconds from Jan 1st 1970, corrected for local time

sys.LoggedOnUser

The name of the logged-on user

sys.Logging

Determines whether transaction logging is on

sys.MaxIDP

Maximum decimal places to store in intermediate arithmetic

sys.MenuCaption

Turns menu help captions on or off

sys.MenuCR

Wether return must be used after a menu accel key on a Sculptor 2 style option menu (in character windows)

sys.MilliSecs

Current system time in milliseconds

sys.Month

Month component of a date type field (obsolescent)

sys.ODBC

Indicates if ODBC library available

sys.Plane

Default subscript for the third dimension

sys.PreviousControl

The control that previously had input focus

sys.RestoreFocus

Determines if focus restored to previous application when Sculptor program exits

sys.Rounding

Determines if fractions are rounded to the nearest integer

sys.RoundingUnit

Rounding unit of the current active currency

sys.Row

Default subscript for the second dimension

sys.ScDateVersion

Sculptor date version

sys.ScFixVersion

Sculptor fix version number

sys.ScMajorVersion

Sculptor major version number

sys.ScMinorVersion

Sculptor minor version number

sys.ScreenHeight

Current screen height

sys.ScreenWidth

Current screen width

sys.Separator

Separator character for get[field] #, put[field] # and put commands

sys.ServerErrorFunction

Socket error event function

sys.ServerRetries

Server connection number of retries

sys.Status

Termination status of a child task

sys.SysTime

System time in elapsed seconds from Jan 1st 1970

sys.Task

Current task number

sys.Terminal

Terminal type currently in use

sys.Text

Current text file extension

sys.Time

Current system time

sys.ToolTips

Number of seconds tooltips remain visible

sys.Traps

Traps set by last trappable command

sys.TTYno

Terminal number

sys.TTYno2

Sculptor Version 6.1.1: Terminal number

sys.Unit

Device unit for drawing operations

sys.UserID

User identification number

sys.UserName

User logon name

sys.UseTheme

Indicates if Sculptor is using a Windows theme or a classic style

sys.ValidCaption

Wether the validation string is displayed as a caption

sys.ValidateOnClose

Execute validation and lose focus on input/dialog before close event

sys.VDPUScale

The vertical DPI scale.

sys.VResolution

The verical resolution of the main display.

sys.Warn

Warning level for runtime errors

sys.WindowsNT

Whether Sculptor is running under one of the Windows NT family

sys.WinMajorVersion

Major version number of Windows

sys.WinMinorVersion

Minor version number of Windows

sys.Year

Year component of a date type field (obsolescent)


RELATED TOPICS

Report system variables

Internet system variables