Skip to main content
Version: 2025

Sal

Namespace: PPJ.Runtime

Assembly: PPJ.Web.49 (4.9.0.0)

Contains all Sal.* static functions.

public class Sal

Properties

Static memberInterpreter

ScriptEngine: Returns the instance of the interpreter used by SalCompileAndEvaluate.

Static memberSalReportType

Type: Returns/Sets the type of the ISalReport implementation.

Methods

Static memberAbort(exitCode)

Halts processing of the current menu action, message action, or application action.

ParameterTypeDescription
exitCodeSalNumber

Returns: SalBoolean.

Static memberAppDisable()

Disables input to all open forms.

Returns: SalBoolean.

Static memberAppEnable()

Enables input to all open forms that were disabled.

Returns: SalBoolean.

Static memberAppFind(name, activate)

Finds a visible top-level window.

ParameterTypeDescription
nameSalString
activateSalBoolean

Returns: SalWindowHandle.

Static memberArrayAvg(array)

Returns the average value of all the numbers in an array.

ParameterTypeDescription
arraySalArray<SalNumber>The name of an array of numbers.

Returns: SalNumber. nAvg

Static memberArrayDimCount(array, dim)

ParameterTypeDescription
arraySalArray
dimSalNumber&

Returns: SalBoolean.

Static memberArrayGetLowerBound(array, dim, bound)

ParameterTypeDescription
arraySalArray
dimSalNumber
boundSalNumber&

Returns: SalBoolean.

Static memberArrayGetUpperBound(array, dim, bound)

ParameterTypeDescription
arraySalArray
dimSalNumber
boundSalNumber&

Returns: SalBoolean.

Static memberArrayIsEmpty(array)

Determines if a dynamic array contains data.

ParameterTypeDescription
arraySalArrayThe name of the array to query.

Returns: SalBoolean. bData

Static memberArrayMax(array)

Returns the maximum value in an array of numbers.

ParameterTypeDescription
arraySalArray<SalNumber>

Returns: SalNumber.

Static memberArrayMin(array)

Returns the minimum value in an array of numbers.

ParameterTypeDescription
arraySalArray<SalNumber>

Returns: SalNumber.

Static memberArrayQueryBounds(array, min, max)

ParameterTypeDescription
arraySalArray
minSalNumber&
maxSalNumber&

Returns: SalNumber.

Static memberArraySetBounds(array, lower, upper)

Sets the lower and upper bound of an array for the first dimension only. NOTE: In SAL this function was named SalSetArrayBounds().

ParameterTypeDescription
arraySalArrayThe name of the array to query.
lowerSalNumberThe new lower bound.
upperSalNumberThe new upper bound or AC_Dynamic.

Returns: SalBoolean. bOk

Static memberArraySetUpperBound(array, dim, bound)

Sets the upper bound of an array. The first dimension is 1.

ParameterTypeDescription
arraySalArray
dimSalNumber
boundSalNumber

Returns: SalBoolean.

Static memberArraySum(array)

Returns the sum of the elements in an array of numbers.

ParameterTypeDescription
arraySalArray<SalNumber>The name of an array of numbers.

Returns: SalNumber. nSum

Static memberBringWindowToTop(ctrl)

Brings a window to the top of all overlapping windows.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberCenterWindow(ctrl)

Centers a window. If the window is a top-level window, it centers it on the desktop. If the window is a child window, it centers it on top of its parent.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberClearField(ctrl)

Clears the value from a data field, multiline field, or table window column.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberColorFromRGB(red, green, blue)

Composes a color from red, green, and blue values.

ParameterTypeDescription
redSalNumberA number from 0 to 255.
greenSalNumberA number from 0 to 255.
blueSalNumberA number from 0 to 255.

Returns: SalNumber. colorValue

Static memberColorGet(ctrl, colorIndex)

Gets a window's color.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
colorIndexSalNumber

Returns: SalNumber.

Static memberColorGetSysColor(colorIndex)

Gets a system color.

ParameterTypeDescription
colorIndexSalNumberThe color of a part of the window, represented by one of these constants: COLOR_SysWindow COLOR_SysWindowFrame COLOR_SysWindowText

Returns: SalNumber. colorValue

Static memberColorSet(ctrl, colorIndex, colorValue)

Sets a window's color.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
colorIndexSalNumber
colorValueSalNumber

Returns: SalBoolean.

Static memberColorToRGB(colorValue, red, green, blue)

ParameterTypeDescription
colorValueSalNumber
redSalNumber&
greenSalNumber&
blueSalNumber&

Returns: SalBoolean.

Static memberColorToRGB(color, red, green, blue)

ParameterTypeDescription
colorColor
redSalNumber&
greenSalNumber&
blueSalNumber&

Returns: SalBoolean.

Static memberCompileAndEvaluate(sExpression, nError, nErrorPos, numReturn, sReturn, dtReturn, windowReturn, bInhibitErrors, context)

ParameterTypeDescription
sExpressionSalString
nErrorSalNumber&
nErrorPosSalNumber&
numReturnSalNumber&
sReturnSalString&
dtReturnSalDateTime&
windowReturnSalWindowHandle&
bInhibitErrorsSalBoolean
contextObject

Returns: SalNumber.

Static memberContextBreak()

Deprecated memberDeprecated: Use this. Not supported.

Returns: SalString.

Static memberContextCurrent(context)

Returns an instance of SalStringContext wrapping the current context reference.

ParameterTypeDescription
contextObject

Returns: SalStringContext.

Static memberContextMenuSetPopup(ctrl, menuName, flags)

Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
menuNameSalString
flagsSalNumber

Returns: SalBoolean.

Static memberContextMenuSetPopup(ctrl, menuType, flags)

Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
menuTypeType
flagsSalNumber

Returns: SalBoolean.

Static memberCreateWindow(tWndToCreate, parent, parameters)

Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows at runtime.

ParameterTypeDescription
tWndToCreateType
parentControl
parametersObject[]

Returns: SalWindowHandle.

Static memberCreateWindow(formName, parent, parameters)

Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows at runtime.

ParameterTypeDescription
formNameSalString
parentControl
parametersObject[]

Returns: SalWindowHandle.

Static memberCreateWindow(formName, parent)

Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows at runtime.

ParameterTypeDescription
formNameSalString
parentControl

Returns: SalWindowHandle.

Static memberCreateWindowEx(tWndToCreate, parent, left, top, width, height, flags, Parameters)

Creates a form window, dialog box, or table window as a child of another form window,

ParameterTypeDescription
tWndToCreateType
parentControl
leftSalNumber
topSalNumber
widthSalNumber
heightSalNumber
flagsSalNumber
ParametersObject[]

Returns: SalWindowHandle.

Static memberCreateWindowEx(formName, parent, left, top, width, height, flags)

Creates a form window, dialog box, or table window as a child of another form window, dialog box, or toolbar at runtime.

ParameterTypeDescription
formNameSalString
parentControl
leftSalNumber
topSalNumber
widthSalNumber
heightSalNumber
flagsSalNumber

Returns: SalWindowHandle.

Static memberCreateWindowExFromStr(formName, parent, left, top, width, height, flags)

Creates a form window, dialog box, or table window as a child of another form window, dialog box, or toolbar at runtime.

ParameterTypeDescription
formNameSalString
parentControl
leftSalNumber
topSalNumber
widthSalNumber
heightSalNumber
flagsSalNumber

Returns: SalWindowHandle.

Static memberCreateWindowFromStr(formName, parent)

Creates modeless dialog boxes, MDI windows, form windows, and top-level table windows at runtime.

ParameterTypeDescription
formNameSalString
parentControl

Returns: SalWindowHandle.

Static memberCursorClear(ctrl, type)

Clears a window's cursor.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
typeSalNumber

Returns: SalBoolean.

Static memberCursorSet(ctrl, resourceId, type)

Sets a window's cursor.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
resourceIdSalNumber
typeSalNumber

Returns: SalBoolean.

Static memberCursorSetFile(ctrl, fileName, type)

Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
fileNameSalString
typeSalNumber

Returns: SalBoolean.

Static memberCursorSetString(ctrl, blob, type)

Sets a window's cursor from a string variable.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
blobSalString
typeSalNumber

Returns: SalBoolean.

Static memberDateConstruct(year, month, day, hour, minute, second)

Returns the date/time constructed from the parameters year, nMonth, nDay, nHour, minute, and nSecond.

ParameterTypeDescription
yearSalNumber
monthSalNumber
daySalNumber
hourSalNumber
minuteSalNumber
secondSalNumber

Returns: SalDateTime.

Static memberDateCurrent()

Returns the PC's current date/time.

Returns: SalDateTime.

Static memberDateDay(dateTime)

Returns the day portion (1 to 31) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateHour(dateTime)

Returns the hour portion (0 to 23) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateMinute(dateTime)

Returns the minute portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateMonth(dateTime)

Returns the month portion (1 to 12) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateMonthBegin(dateTime)

Returns the date of the first day of the month or it returns DATETIME_Null if the value you specify is null. For example, if dateTime is December 25, 1992, SalDateMonthBegin returns December 1, 1992.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalDateTime.

Static memberDateQuarter(dateTime)

Returns the quarter of the year (1 to 4) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateQuarterBegin(dateTime)

Returns the date of the first day of the quarter of a date/time value or it returns DATETIME_Null if the value you specify is null.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalDateTime.

Static memberDateSecond(dateTime)

Returns the seconds portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateToStr(date, target)

ParameterTypeDescription
dateSalDateTime
targetSalString&

Returns: SalNumber.

Static memberDateWeekBegin(dateTime)

Returns the date of the previous Monday or the current day if it is a Monday or it returns DATETIME_Null if the value you specify is null.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalDateTime.

Static memberDateWeekday(dateTime)

Returns the day of the week as a number between 0 and 6 or returns -1 if you specify DATETIME_Null as a parameter. 0 represents Saturday, 1 represents Sunday, and so on.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateYear(dateTime)

Returns the year portion of a date or returns -1 if you specify DATETIME_Null as a parameter.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalNumber.

Static memberDateYearBegin(dateTime)

Returns the date of the first day of the year or it returns DATETIME_Null if the value you specify is null.

ParameterTypeDescription
dateTimeSalDateTime

Returns: SalDateTime.

Static memberDestroyWindow(ctrl)

Destroys a form window, a top-level table window, or a modeless dialog box created with SalCreateWindow.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberDisableWindow(ctrl)

Disables keyboard and mouse input to a window. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberDisableWindowAndLabel(ctrl)

Disables keyboard and mouse input to a window and grays out its associated label. A label is the label control that immediately precedes the window. The label control must have a mnemonic. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberDlgChooseColor(ctrl, title, colorValue)

ParameterTypeDescription
ctrlControl
titleSalString
colorValueSalNumber&

Returns: SalBoolean.

Static memberDlgChooseFont(ctrl, name, size, enhancements, color)

ParameterTypeDescription
ctrlControl
nameSalString&
sizeSalNumber&
enhancementsSalNumber&
colorSalNumber&

Returns: SalBoolean.

Static memberDlgGetDockStatus(windowDlg, orientation)

ParameterTypeDescription
windowDlgSalWindowHandle
orientationSalNumber&

Returns: SalBoolean.

Static memberDlgOpenFile(ctrl, dialogTitle, roots, filters, filtersCount, filterIndex, fileName, filePath)

ParameterTypeDescription
ctrlControl
dialogTitleSalString
rootsIFileSystemProvider[]
filtersSalArray<SalString>
filtersCountSalNumber
filterIndexSalNumber&
fileNameSalString&
filePathSalString&

Returns: SalBoolean.

Static memberDlgOpenFileMulti(ctrl, dialogTitle, roots, filters, filtersCount, filterIndex, fileNames, filePaths, fileCount)

ParameterTypeDescription
ctrlControl
dialogTitleSalString
rootsIFileSystemProvider[]
filtersSalArray<SalString>
filtersCountSalNumber
filterIndexSalNumber&
fileNamesSalArray`1&
filePathsSalArray`1&
fileCountSalNumber&

Returns: SalBoolean.

Static memberDlgSaveFile(ctrl, dialogTitle, roots, filters, filtersCount, filterIndex, fileName, filePath)

ParameterTypeDescription
ctrlControl
dialogTitleSalString
rootsIFileSystemProvider[]
filtersSalArray<SalString>
filtersCountSalNumber
filterIndexSalNumber&
fileNameSalString&
filePathSalString&

Returns: SalBoolean.

Static memberDlgSetDockStatus(windowDlg, orientation)

Causes a dialog box to dock or undock with a parent window.

ParameterTypeDescription
windowDlgSalWindowHandle
orientationSalNumber

Returns: SalBoolean.

Static memberDragDropDisableDrop()

Disables dropping while in drag mode.

Returns: SalBoolean.

Static memberDragDropEnableDrop()

Enables dropping while in drag mode.

Returns: SalBoolean.

Static memberDragDropGetDataObject()

Returns the IDataObject being dropped.

Returns: IDataObject.

Static memberDragDropGetSource(window, x, y)

ParameterTypeDescription
windowSalWindowHandle&
xSalNumber&
ySalNumber&

Returns: SalBoolean.

Static memberDragDropGetTarget(windowTarget, x, y)

ParameterTypeDescription
windowTargetSalWindowHandle&
xSalNumber&
ySalNumber&

Returns: SalBoolean.

Static memberDragDropStart(ctrl)

Initiates drag mode.

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static memberDragDropStop()

Ends drag mode.

Returns: SalBoolean.

Static memberDrawMenuBar(ctrl)

Redraws the menu bar for a given form window or top-level table window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberDropFileQueryStream(nFileIndex)

Retrieves the uploaded file.

ParameterTypeDescription
nFileIndexSalNumberIndex of the file stream to retrieve.

Returns: Stream.

Static memberDropFilesAcceptFiles(ctrl, bAccept)

Indicates whether a window can accept a file from Windows' File Manager.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
bAcceptSalBoolean

Returns: SalBoolean.

Static memberDropFilesQueryFiles(sArrayFiles)

Retrieves the names of the files dropped on a window. Receipt of the SAM_DropFiles message indicates that the user dropped files onto the window.

ParameterTypeDescription
sArrayFilesSalArray<SalString>

Returns: SalNumber.

Static memberDropFilesQueryPoint(ctrl, x, y)

ParameterTypeDescription
ctrlControl
xSalNumber&
ySalNumber&

Returns: SalBoolean.

Static memberEditCanCopy()

Indicates whether you can copy from the currently selected control on the clipboard.

Returns: SalBoolean. bOk

Static memberEditCanCopyTo()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Not Supported.

Returns: SalBoolean.

Static memberEditCanCut()

Indicates whether you can cut from the currently selected control on the clipboard.

Returns: SalBoolean. bOk

Static memberEditCanPaste()

Returns TRUE if there is data on the Clipboard that can be pasted into the currently selected control

Returns: SalBoolean. bOk

Static memberEditCanPasteFrom()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Not Supported.

Returns: SalBoolean.

Static memberEditCanUndo()

Returns TRUE if the if there is any editing of the currently selected control that can be undone.

Returns: SalBoolean. bOk

Static memberEditClear()

Deletes selected data from the currently selected control

Returns: SalBoolean. bOk

Static memberEditCopy()

Copies selected data from the currently selected control and puts it on the Clipboard.

Returns: SalBoolean. bOk

Static memberEditCopyString(str)

Copies a string to the Clipboard as text.

ParameterTypeDescription
strSalStringThe string to copy to the Clipboard.

Returns: SalBoolean. bOk

Static memberEditCopyTo()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Not Supported.

Returns: SalBoolean.

Static memberEditCut()

Cuts selected data from the currently selected control and puts it on the Clipboard.

Returns: SalBoolean. bOk

Static memberEditPaste()

Pastes data from the Clipboard into the currently selected control

Returns: SalBoolean. bOk

Static memberEditPasteFrom()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Not supported

Returns: SalBoolean.

Static memberEditPasteString(str)

ParameterTypeDescription
strSalString&

Returns: SalBoolean.

Static memberEditUndo()

Undoes the last edit to the currently selected control Editing that you can undo includes inserting text, cutting text, clearing text, and pasting text.

Returns: SalBoolean.

Static memberEnableWindow(ctrl)

Enables keyboard and mouse input to a window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberEnableWindowAndLabel(ctrl)

Enables keyboard and mouse input to a window and enables its associated label as well. A label is the label control that immediately precedes the window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberEndDialog(ctrl, returnValue)

Destroys a modal dialog box and returns control to the caller of SalModalDialog.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
returnValueSalNumber

Returns: SalBoolean.

Static memberEndTrace()

Stops tracing.

Returns: SalBoolean.

Static memberFileClose(file)

ParameterTypeDescription
fileSalFileHandle&

Returns: SalBoolean.

Static memberFileCopy(sourcePath, destPath, overwrite)

Copies the contents of one file (source) to another file (destination).

ParameterTypeDescription
sourcePathSalStringThe full path name of the source file.
destPathSalStringThe full path name of the destination file.
overwriteSalBooleanSpecifies whether (TRUE) or not (FALSE) to overwrite the destination file. If the destination file already exists and overwrite is FALSE, then SalFileCopy fails, and returns FILE_CopyExist. If the destination file already exists and overwrite is TRUE, then SalFileCopy succeeds and the destination file is overwritten.

Returns: SalNumber. nStatus

Static memberFileCreateDirectory(directory)

Creates a directory.

ParameterTypeDescription
directorySalStringThe full path name of the new directory.

Returns: SalBoolean. bOk

Static memberFileGetChar(file, charValue)

ParameterTypeDescription
fileSalFileHandle
charValueSalNumber&

Returns: SalBoolean.

Static memberFileGetChar(file)

Returns the next character in an open file.

ParameterTypeDescription
fileSalFileHandleThe handle of the open file.

Returns: SalNumber. charValue

Static memberFileGetCurrentDirectory(path)

ParameterTypeDescription
pathSalString&

Returns: SalBoolean.

Static memberFileGetDateTime(fileName, dateTime)

ParameterTypeDescription
fileNameSalString
dateTimeSalDateTime&

Returns: SalBoolean.

Static memberFileGetDrive()

Gets the letter of the default (current) disk drive.

Returns: SalString. sDriveLetter

Static memberFileGetStr(file, buffer, bufferSize)

ParameterTypeDescription
fileSalFileHandle
bufferSalString&
bufferSizeSalNumber

Returns: SalBoolean.

Static memberFileOpen(file, fileName, style)

ParameterTypeDescription
fileSalFileHandle&
fileNameSalString
styleSalNumber

Returns: SalBoolean.

Static memberFileOpen(file, fileName, style, encoding)

ParameterTypeDescription
fileSalFileHandle&
fileNameSalString
styleSalNumber
encodingEncoding

Returns: SalBoolean.

Static memberFileOpenExt(file, fileName, style, reopen)

Deprecated memberDeprecated: Use Sal.FileOpen().

ParameterTypeDescription
fileSalFileHandle&
fileNameSalString
styleSalNumber
reopenSalString&

Returns: SalBoolean.

Static memberFilePutChar(file, charValue)

Writes a character to an open file.

ParameterTypeDescription
fileSalFileHandle
charValueSalNumber

Returns: SalBoolean.

Static memberFilePutStr(file, str)

Writes a string to an open file and appends a carriage return/line feed character to the string.

ParameterTypeDescription
fileSalFileHandle
strSalString

Returns: SalBoolean.

Static memberFileRead(file, buffer, bufferLength)

ParameterTypeDescription
fileSalFileHandle
bufferSalString&
bufferLengthSalNumber

Returns: SalNumber.

Static memberFileRead(file, buffer, bufferLength)

ParameterTypeDescription
fileSalFileHandle
bufferSalBinary&
bufferLengthSalNumber

Returns: SalNumber.

Static memberFileRemoveDirectory(directory)

Deletes a directory.

ParameterTypeDescription
directorySalString

Returns: SalBoolean.

Static memberFileSeek(file, bytes, position)

Positions the file pointer in an open file.

ParameterTypeDescription
fileSalFileHandle
bytesSalNumber
positionSalNumber

Returns: SalBoolean.

Static memberFileSetCurrentDirectory(path)

Changes the current working directory. If the specified path does not contain a drive letter, the default drive's current directory is changed. Otherwise, the specified drive's current directory is changed and the specified drive is made the current drive.

ParameterTypeDescription
pathSalStringThe path name of the new current working directory.

Returns: SalBoolean. bOk

Static memberFileSetDateTime(fileName, dateTime)

Sets the modification date and time of the specified file.

ParameterTypeDescription
fileNameSalStringThe name of the file whose modification date you want to set.
dateTimeSalDateTimeThe modification date and time.

Returns: SalBoolean. bOk

Static memberFileSetDrive(sDriveLetter)

Sets the current disk drive to the specified drive letter.

ParameterTypeDescription
sDriveLetterSalStringThe new disk drive letter. The length of this parameter's value is one character. If you specify a value larger than this, reads only the first character.

Returns: SalBoolean. bOk

Static memberFileTell(file)

Returns the current position in an open file.

ParameterTypeDescription
fileSalFileHandleThe handle of an open file.

Returns: SalNumber. nPos

Static memberFileWrite(file, buffer, bufferLength)

Writes a string to an open file.

ParameterTypeDescription
fileSalFileHandleThe handle of an open file. fileFile Handle. The handle of an open file.
bufferSalStringThe string to write to file.
bufferLengthSalNumberThe number of bytes to write.

Returns: SalNumber. nResult

Static memberFileWrite(file, buffer, bufferLength)

Writes a binary buffer to an open file.

ParameterTypeDescription
fileSalFileHandleThe handle of an open file. fileFile Handle. The handle of an open file.
bufferSalBinaryThe string to write to file.
bufferLengthSalNumberThe number of bytes to write.

Returns: SalNumber. nResult

Static memberFindWindow(ctrl, windowName)

This function finds a child window of a given name in the specified window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
windowNameSalString

Returns: SalWindowHandle.

Static memberFireWindowActions(ctrl, nAction, wParam, lParam)

Dispatches the specified message (Window Actions) directly to the control's WindowActions event handlers, without going through Windows message loop.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nActionSalNumberAction type to send to ctrl .
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Returns: SalNumber.

Static memberFireWindowActionsToChildren(ctrl, nAction, wParam, lParam)

Dispatches the specified message (Window Actions) directly to the children's WindowActions event handlers, without going through Windows message loop.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nActionSalNumberAction type to send to the direct children of ctrl .
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Returns: SalBoolean.

Static memberFmtCopyProfile(ctrl, nProfile)

Copies the specified profile to the custom profile for the specified field. The control must use the customized profile set using FMT_Profile_Program.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nProfileSalNumber

Returns: SalBoolean.

Static memberFmtFieldToStr(ctrl, text, bFormat)

ParameterTypeDescription
ctrlControl
textSalString&
bFormatSalBoolean

Returns: SalBoolean.

Static memberFmtFormatDateTime(dateTime, sPicture)

Formats a date/time value using a given date/time picture format. If you do not specify a picture format or the one you specify is invalid, the default local settings are used

ParameterTypeDescription
dateTimeSalDateTimeThe date/time value to format.
sPictureSalStringThe date/time picture format.

Returns: SalString. sDateTime

Static memberFmtFormatNumber(num, sPicture)

Formats a number value using a number picture format. If you do not specify a picture format or the one you specify is invalid, the default local settings are used

ParameterTypeDescription
numSalNumberThe number value to format.
sPictureSalStringThe number picture format.

Returns: SalString. sNumber

Static memberFmtGetFormat(ctrl)

Returns the current format of a data field or table window column.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber.

Static memberFmtGetInputMask(ctrl, sMask)

ParameterTypeDescription
ctrlControl
sMaskSalString&

Returns: SalBoolean.

Static memberFmtGetParmNum(ctrl, nParm, nValue)

ParameterTypeDescription
ctrlControl
nParmSalNumber
nValueSalNumber&

Returns: SalBoolean.

Static memberFmtGetParmStr(ctrl, nParm, value)

ParameterTypeDescription
ctrlControl
nParmSalNumber
valueSalString&

Returns: SalBoolean.

Static memberFmtGetPicture(ctrl, sFormat)

ParameterTypeDescription
ctrlControl
sFormatSalString&

Returns: SalBoolean.

Static memberFmtGetProfile(ctrl)

Returns the culture profile for the specified field.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber.

Static memberFmtIsValidField(ctrl)

Validates the contents of a data field or table window column using the current profile.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberFmtIsValidInputMask(sMask)

Validates the input mask of a data field or table window column.

ParameterTypeDescription
sMaskSalStringAn input mask.

Returns: SalBoolean. bOk

Static memberFmtIsValidPicture(sFormat, nType)

Validates a numeric or date/time picture format.

ParameterTypeDescription
sFormatSalString
nTypeSalNumber

Returns: SalBoolean.

Static memberFmtKeepMask(bKeep)

Turns on/off the flag that indicates whether to keep the mask when reading the text from masked edit controls.

ParameterTypeDescription
bKeepSalBoolean

Returns: SalBoolean.

Static memberFmtSetFormat(ctrl, nFormat)

Sets a data field's or table window column's format.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nFormatSalNumber

Returns: SalBoolean.

Static memberFmtSetInputMask(ctrl, sMask)

Sets the input mask of a data field or table window column.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
sMaskSalString

Returns: SalBoolean.

Static memberFmtSetParmNum(ctrl, nParm, nValue)

Modifies the specified formatting rule on the control. The control must use the customized profile set using FMT_Profile_Program.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nParmSalNumber
nValueSalNumber

Returns: SalBoolean.

Static memberFmtSetParmStr(ctrl, nParm, value)

Modifies the specified formatting rule on the control. The control must use the customized profile set using FMT_Profile_Program.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nParmSalNumber
valueSalString

Returns: SalBoolean.

Static memberFmtSetPicture(ctrl, sPicture)

Sets the picture format of a data field or table window column.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
sPictureSalString

Returns: SalBoolean.

Static memberFmtSetProfile(ctrl, nProfile)

Changes the culture profile for the specified field.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nProfileSalNumber

Returns: SalBoolean.

Static memberFmtStrToField(ctrl, value, bFormat)

Copies a string to a data field or table window column. After copying the string to the field, formats the string.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
valueSalString
bFormatSalBoolean

Returns: SalBoolean.

Static memberFmtUnmaskInput(ctrl, text)

ParameterTypeDescription
ctrlControl
textSalString&

Returns: SalBoolean.

Static memberFmtValidateField(ctrl, nValidate)

Validates and formats a data field's or table window column's contents.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nValidateSalNumber

Returns: SalBoolean.

Static memberFontGet(ctrl, name, size, nEnhancement)

ParameterTypeDescription
ctrlControl
nameSalString&
sizeSalNumber&
nEnhancementSalNumber&

Returns: SalBoolean.

Static memberFontGetNames(nType, sFonts)

Gets the names of the screen or printer fonts.

ParameterTypeDescription
nTypeSalNumberA constant that specifies whether to get the screen or printer fonts: FONT_GetPrinter FONT_GetScreen
sFontsSalArray<SalString>The name of an array of strings that contains the font names returned.

Returns: SalNumber. nNames

Static memberFontGetSizes(get, fontName, fontSizes)

Deprecated memberDeprecated: Use FontFamilies instead.

ParameterTypeDescription
getSalNumber
fontNameSalString
fontSizesSalArray`1&

Returns: SalNumber.

Static memberFontSet(ctrl, name, size, nEnhancement)

Sets a window's font, font size, and font enhancements.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nameSalString
sizeSalNumber
nEnhancementSalNumber

Returns: SalBoolean.

Static memberFormUnitsToPixels(ctrl, formUnits, vertical)

Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
formUnitsSalNumber
verticalSalBoolean

Returns: SalNumber.

Static memberGetBufferLength(buffer)

Returns the current buffer length of a binary variable.

ParameterTypeDescription
bufferSalBinary

Returns: SalNumber.

Static memberGetBufferLength(str)

Returns the current buffer length of a string.

ParameterTypeDescription
strSalString

Returns: SalNumber.

Static memberGetDataType(ctrl)

Returns a data field's or table window column's data type.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber.

Static memberGetDefButton(ctrl)

Returns the handle of the default push button on a form window or dialog box. The default push button is the one that has the focus by default.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalWindowHandle.

Static memberGetFirstChild(ctrl, typeMask)

Returns the handle of the first child window of the specified type. You can use this function to get the handles of MDI child windows.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
typeMaskSalNumber

Returns: SalWindowHandle.

Static memberGetFocus()

Returns the handle of the window with the focus.

Returns: SalWindowHandle. windowFocus

Static memberGetItemName(ctrl, name)

ParameterTypeDescription
ctrlControl
nameSalString&

Returns: SalBoolean.

Static memberGetMaxDataLength(ctrl)

Returns the maximum length of a data field, multiline text field, or table window column.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber.

Static memberGetNextChild(ctrl, typeMask)

Returns the handle of the next child window that matches a specified type.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
typeMaskSalNumber

Returns: SalWindowHandle.

Static memberGetProfileInt(section, entry, defaultValue, fileName)

Retrieves the integer value of an entry in the specified section of an initialization file or registry.

ParameterTypeDescription
sectionSalString
entrySalString
defaultValueSalNumber
fileNameSalString

Returns: SalNumber.

Static memberGetProfileString(section, entry, defaultValue, value, fileName)

ParameterTypeDescription
sectionSalString
entrySalString
defaultValueSalString
valueSalString&
fileNameSalString

Returns: SalNumber.

Static memberGetReportObject(handle)

Returns the instance of ISalReport that is identified by the handle.

ParameterTypeDescription
handleIntPtrThe reference handle to the ISalReport object.

Returns: ISalReport.

Static memberGetVersion()

Returns the version of the library.

Returns: SalNumber.

Static memberGetWindowLabel(ctrl)

Retrieves the window handle of the label (label control) that is associated with the windowTarget parameter. There must be a mnemonic in that label, and it must immediately precede windowTarget, or this function will fail.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalWindowHandle.

Static memberGetWindowLabelText(ctrl, text, maxLength)

ParameterTypeDescription
ctrlControl
textSalString&
maxLengthSalNumber

Returns: SalNumber.

Static memberGetWindowLoc(ctrl, x, y)

ParameterTypeDescription
ctrlControl
xSalNumber&
ySalNumber&

Returns: SalBoolean.

Static memberGetWindowSize(ctrl, width, height)

ParameterTypeDescription
ctrlControl
widthSalNumber&
heightSalNumber&

Returns: SalBoolean.

Static memberGetWindowState(ctrl)

Returns a window's current state.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber.

Static memberGetWindowText(ctrl, text, maxLen)

ParameterTypeDescription
ctrlControl
textSalString&
maxLenSalNumber

Returns: SalNumber.

Static memberHideWindow(ctrl)

Hides a window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberHideWindowAndLabel(ctrl)

Hides a window and its associated label.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberHStringToNumber(str)

Converts a string to a number so you can pass it as a message parameter.

ParameterTypeDescription
strSalString

Returns: SalNumber.

Static memberInvalidateWindow(ctrl)

Causes a window to be repainted.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsButtonChecked(ctrl)

Determines whether a radio button is set or a check box is checked.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsNull(ctrl)

Verifies whether a data field, multiline text field, or table window column is null or empty.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsValidDateTime(ctrl)

Verifies whether a data field, multiline text field, or table window column contains a valid date/time value. For multiline text fields, the date/time value must be the only item in the field.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsValidDecimal(ctrl, precision, scale)

Verifies whether a data field, multiline text field, or table window column contains a valid decimal value. For multiline text fields, the decimal value must be the only item in the field.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
precisionSalNumber
scaleSalNumber

Returns: SalBoolean.

Static memberIsValidInteger(ctrl)

Verifies whether a data field, multiline text field, or table window column contains a valid integer value. For multiline text fields, the integer value must be the only item in the field.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsValidNumber(ctrl)

Verifies whether a data field, multiline text field, or table window column contains a valid numeric value. Valid numbers are integers or floating point numbers, negative and positive. For multiline text fields, the numeric value must be the only item in the field.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsWindowEnabled(ctrl)

Determines whether a window is enabled for mouse and keyboard input.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberIsWindowVisible(ctrl)

Determines whether a window is currently visible.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberListAdd(ctrl, text)

Adds a string to a list box or combo box.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
textSalStringText of the item to add to the list.

Returns: SalNumber. Index of the added item.

Static memberListClear(ctrl)

Deletes all entries from a list box or combo box.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberListDelete(ctrl, index)

Deletes a list box or combo box entry.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberIndex of the item to remove from the list.

Returns: SalNumber.

Static memberListFiles(ctrl, ctrlPath, pathName, attributes)

ParameterTypeDescription
ctrlControl
ctrlPathControl
pathNameSalString&
attributesSalNumber

Returns: SalBoolean.

Static memberListGetMultiSelect(ctrl, selectedArray)

Returns an array of index numbers of selected list box entries.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
selectedArraySalArray<SalNumber>Array to receive the list of selected indices.

Returns: SalBoolean. True if at least 1 item selected, otherwise false.

Static memberListInsert(ctrl, index, text)

Inserts an entry into a list box or combo box at a specified position.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberPosition in the list where to insert the text .
textSalStringText of the item to insert in the list.

Returns: SalNumber. The index of the added item or Sys.LB_Err (-1) if there is an error.

Static memberListPopulate(ctrl, sql, select)

Populates a list box or combo box with a result set. SalListPopulate overrides any settings made with SalListSetTabs. If the SELECT statement returns data from multiple columns, each column's data displayed in a list box is separated by tabs.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
sqlSalSqlHandleA SalSqlHandle to execute the sql command.
selectSalStringSQL command to execute.

Returns: SalBoolean.

Static memberListPopulate(ctrl, sql, select, errorHandler)

Populates a list box or combo box with a result set. If the SELECT statement returns data from multiple columns, each column's data displayed in the list box is separated by tabs.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
sqlSalSqlHandleA SalSqlHandle to execute the sql command.
selectSalStringSQL command to execute.
errorHandlerWhenSqlErrorHandlerSQL error handler callback.

Returns: SalBoolean.

Static memberListQueryCount(ctrl)

Returns the number of list box or combo box entries.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber. Number of items in the list.

Static memberListQueryFile(ctrl, fileName)

ParameterTypeDescription
ctrlControl
fileNameSalString&

Returns: SalBoolean.

Static memberListQueryMultiCount(ctrl)

Returns the number of selected entries in a multiple-selection list box. Specify single-selection or multiple-selection in the list box's customizer.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber. Number of selected items.

Static memberListQuerySelection(ctrl)

Returns the index of the selected entry in a combo box or single-selection list box.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber. Index of the currently selected item in the list, or -1 for no selection.

Static memberListQueryState(ctrl, index)

Determines whether the specified list box or combo box entry is selected.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberIndex of the item to query.

Returns: SalBoolean. True is the specified item is selected.

Static memberListQueryText(ctrl, index, text)

ParameterTypeDescription
ctrlControl
indexSalNumber
textSalString&

Returns: SalNumber.

Static memberListQueryTextLength(ctrl, index)

Returns the length of a list box or combo box entry.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberIndex of the item to retrieve the text length for.

Returns: SalNumber. Length of the text of the specified item.

Static memberListQueryTextX(ctrl, index)

Returns the text of the specified item.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberIndex of the item to retrieve the text for.

Returns: SalString. Text of the specified item.

Static memberListSelectString(ctrl, startIndex, text)

Finds and selects a combo box or single-selection list box entry.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
startIndexSalNumberPosition where to start the search for text .
textSalStringText to search for in the list.

Returns: SalNumber. Index of the first item that matches the text or -1 if not found.

Static memberListSetMultiSelect(ctrl, index, select)

Selects or deselects a combo box or multiple-selection list box entry.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberIndex of the item to select or deselect. Use -1 for all the items in the list.
selectSalBooleanTrue to select, or false to deselect the item.

Returns: SalBoolean.

Static memberListSetSelect(ctrl, index)

Selects or deselects a combo box or single-selection list box entry.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
indexSalNumberIndex of the item to select. Use -1 for all the items in the list.

Returns: SalBoolean.

Static memberLoadApp(name, parameters)

Starts an application.

ParameterTypeDescription
nameSalString
parametersSalString

Returns: SalBoolean.

Static memberLoadAppAndWait(name, mode, retCode)

ParameterTypeDescription
nameSalString
modeSalNumber
retCodeSalNumber&

Returns: SalBoolean.

Static memberLog(fileName, message)

Appends the string to the file.

ParameterTypeDescription
fileNameSalString
messageSalString

Returns: SalBoolean.

Static memberLogLine(fileName, message)

Appends the string and a new line to the file.

ParameterTypeDescription
fileNameSalString
messageSalString

Returns: SalBoolean.

Static memberLogResource(fileName)

Deprecated memberDeprecated: Use Sal.Log(). Logs the available resources to the file.

ParameterTypeDescription
fileNameSalString

Returns: SalBoolean.

Static memberMapEnterToTab(bState)

Changes the behavior of the Enter key from executing the default button on a window to moving the focus to the next field.

ParameterTypeDescription
bStateSalBooleanTrue or false to enable or disable using the Enter key to tab to the next field.

Returns: SalBoolean. The value of MapEnterToTab.

Static memberMessageBeep(sSoundBase64)

Generates a sound on the computer's speaker.

ParameterTypeDescription
sSoundBase64StringThe beep to play in base64 wav format. The default is null to play the built-in beep.

Returns: SalBoolean. Always True.

Static memberMessageBox(text, callback)

Displays a message box and returns a number that indicates the user's response. You can customize the message box push buttons and icons. The active parent window, whose value is hWndForm, creates the message box.

ParameterTypeDescription
textSalStringThe message text.
callbackAction<Int32>Optional callback handler. When set, the messagebox is not modal.

Returns: SalNumber. One of Sys.IDOK, Sys.IDCANCEL, Sys.IDRETRY, Sys.IDNO, Sys.IDYES, Sys.IDIGNORE, Sys.IDABORT.

Static memberMessageBox(text, title, flags, callback)

Displays a message box and returns a number that indicates the user's response. You can customize the message box push buttons and icons. The active parent window, whose value is hWndForm, creates the message box.

ParameterTypeDescription
textSalStringThe message text.
titleSalStringThe message box title.
flagsSalNumberThe message box style. Combine the MB_* options using the OR (|) operator.
callbackAction<Int32>Optional callback handler. When set, the messagebox is not modal.

Returns: SalNumber. One of Sys.IDOK, Sys.IDCANCEL, Sys.IDRETRY, Sys.IDNO, Sys.IDYES, Sys.IDIGNORE, Sys.IDABORT.

Static memberMessageBox(owner, text, title, flags, callback)

Displays a message box and returns a number that indicates the user's response. You can customize the message box push buttons and icons.

ParameterTypeDescription
ownerControlThe owner of the message box.
textSalStringThe message text.
titleSalStringThe message box title.
flagsSalNumberThe message box style. Combine the MB_* options using the OR (|) operator.
callbackAction<Int32>Optional callback handler. When set, the messagebox is not modal.

Returns: SalNumber. One of Sys.IDOK, Sys.IDCANCEL, Sys.IDRETRY, Sys.IDNO, Sys.IDYES, Sys.IDIGNORE, Sys.IDABORT.

Static memberModalDialog(dialogType, owner, parameters)

Creates a modal dialog box.

ParameterTypeDescription
dialogTypeTypeThe dialog to create.
ownerControlOwner of the dialog.
parametersObject[]Optional parameter list.

Returns: SalNumber. The value set when closing the dialog using EndDialog.

Static memberModalDialog(dialogType, owner, callback, parameters)

Creates a modal dialog box and returns the value asynchronously calling the provided callback function.

ParameterTypeDescription
dialogTypeTypeThe dialog to create.
ownerControlOwner of the dialog.
callbackAction<Int32>Callback method, invoked when the dialog is closed.
parametersObject[]Optional parameter list.

Static memberModalDialog(dialogName, owner, parameters)

Creates a modal dialog box.

ParameterTypeDescription
dialogNameSalStringName of the dialog to create.
ownerControlOwner of the dialog.
parametersObject[]Optional parameter list.

Returns: SalNumber.

Static memberModalDialog(dialogName, owner)

Creates a modal dialog box.

ParameterTypeDescription
dialogNameSalStringName of the dialog to create.
ownerControlOwner of the dialog.

Returns: SalNumber.

Static memberModalDialogAsync(dialogType, owner, parameters)

Creates a modal dialog box asynchronously.

ParameterTypeDescription
dialogTypeTypeThe dialog to create.
ownerControlOwner of the dialog.
parametersObject[]Optional parameter list.

Returns: Task<Int32>. The value set when closing the dialog using EndDialog.

Static memberModalDialogAsync(dialogName, owner, parameters)

Creates a modal dialog box asynchronously.

ParameterTypeDescription
dialogNameSalStringName of the dialog to create.
ownerControlOwner of the dialog.
parametersObject[]Optional parameter list.

Returns: Task<Int32>.

Static memberModalDialogFromStr(dialogName, owner)

Creates a modal dialog box.

ParameterTypeDescription
dialogNameSalStringName of the dialog to create.
ownerControlOwner of the dialog.

Returns: SalNumber.

Static memberMoveWindow(ctrl, xOffset, yOffset)

Moves a window a given number of form units on the X and Y axes relative to its current position.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
xOffsetSalNumber
yOffsetSalNumber

Returns: SalBoolean.

Static memberMTSCreateInstance(oObj)

ParameterTypeDescription
oObjObject&

Returns: SalBoolean.

Static memberMTSDisableCommit()

Indicates that the object's transactional updates cannot be committed in the present time until SalMTSEnableCommit() or SalMTSSetComplete() is called. For non-MTS components the SalMTSDisableCommit() will fail (returns FALSE).

Returns: SalBoolean. bOk

Static memberMTSEnableCommit()

Indicates that the object’s work is not necessarily done, but that its transactional updates can be committed in their current form (stateful object). EnableCommit is the default state when an object is activated. For non-MTS components the SalMTSEnableCommit() will fail (returns FALSE).

Returns: SalBoolean. bOk

Static memberMTSGetObjectContext(obj, context)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
objObject
contextSalNumber&

Returns: SalBoolean.

Static memberMTSIsCallerInRole(strRole, bInRole)

ParameterTypeDescription
strRoleSalString
bInRoleSalBoolean&

Returns: SalBoolean.

Static memberMTSIsInTransaction(bIsInTransaction)

ParameterTypeDescription
bIsInTransactionSalBoolean&

Returns: SalBoolean.

Static memberMTSIsSecurityEnabled(bIsSecurityEnabled)

ParameterTypeDescription
bIsSecurityEnabledSalBoolean&

Returns: SalBoolean.

Static memberMTSSetAbort()

Indicates that the object’s work can never be committed. The entire transaction is aborted. The object is deactivated upon return from the method. For non-MTS components the SalMTSSetAbort() will fail (returnS FALSE).

Returns: SalBoolean. bOk

Static memberMTSSetComplete()

Indicates that the object has successfully completed its work for the transaction. The object is deactivated upon return from the method that first entered the context (stateless object). For non-MTS components the SalMTSSetComplete() will fail (returns FALSE).

Returns: SalBoolean. bOk

Adds a new group to the specified pane of a navigation bar.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane to which you want to add a group.
groupIndexSalNumberZero-based index that the new group will occupy.
groupTitleSalStringThe title of the new group.
heightSalNumberThe height of the new group in form units.

Returns: SalBoolean.

Inserts a pane into the navigation bar control.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberIndicates a zero-based pane index. The new pane will be inserted after the pane indicated by nPaneIndex. Use -1 to append as the last pane.
nameSalStringName of the new pane (object title)
imageSalStringFile name of the image to display for the new pane.

Returns: SalBoolean.

Associates a control to a pane.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane.
groupIndexSalNumberZero-based index of the group. If the pane has no groups, use zero.
childControlthe control you're associating to the pane.

Returns: SalBoolean.

Disassociates a control from a pane.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane
childControlThe control you're disassociating

Returns: SalBoolean.

Enables or disables a pane on the navigation bar.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberIndex for the pane to enable (start at 0).
enableSalBooleanSet TRUE to enable pane, FALSE to disable.

Returns: SalBoolean.

Expands or collapses a group.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane
groupIndexSalNumberZero-based index of the group
expandSalBooleanSet to TRUE to expand, FALSE to collapse

Returns: SalBoolean.

Returns the index of the currently selected pane.

ParameterTypeDescription
controlControlThe NavBar control.

Returns: SalNumber. The zero-based index of the currently selected pane.

ParameterTypeDescription
controlControl
paneIndexSalNumber
imageSalString&

Returns: SalBoolean.

Finds the pane by its name and returns a zero-based index of the pane if successful or -1 if the pane is not found.

ParameterTypeDescription
controlControlThe NavBar control.
nameSalStringThe name of the pane (object title)

Returns: SalNumber. the zero-based index of the pane. If the pane is not found, index is -1.

ParameterTypeDescription
controlControl
paneIndexSalNumber
titleSalString&

Returns: SalBoolean.

Returns the title of a pane.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberIndex for the pane whose title you want to get (start at 0)

Returns: SalString.

Retrieves the group status. The function returns true if the group is expanded; false if collapsed.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane
groupIndexSalNumberZero-based index of the group

Returns: SalBoolean.

Restore the settings of a navigation bar from an XML string.

ParameterTypeDescription
controlControlThe NavBar control.
xmlSalString

Returns: SalBoolean.

Returns true if the pane is enabled (visible in the pane navigator); false if disabled (not visible).

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberIndex of pane (start at 0).

Returns: SalBoolean.

Removes a group from the navigation bar control.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane to be removed.
groupIndexSalNumberZero-based index of the group to remove.

Returns: SalBoolean.

Removes a pane from the navigation bar control.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberZero-based index of the pane to be removed.

Returns: SalBoolean.

ParameterTypeDescription
controlControl
xmlSalString&

Returns: SalBoolean.

Activates the indicated pane.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberThe zero-based index of the pane to activate.

Returns: SalBoolean.

Sets the title of a pane.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberIndex for the pane.
imageSalStringFile name of the image to display for the pane.

Returns: SalBoolean.

Sets the title of a pane.

ParameterTypeDescription
controlControlThe NavBar control.
paneIndexSalNumberIndex for the pane whose title you want to get (start at 0).
titleSalStringThe new title for the pane.

Returns: SalBoolean.

Static memberNumberAbs(num)

Computes the absolute num.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberArcCos(num)

Computes the arc cosine of a num in the range 0 to 1.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberArcSin(num)

Computes a num's arc sine.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberArcTan(num)

Computes a num's arc tangent.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberArcTan2(numY, numX)

Computes the arc tangent of two nums. This function uses the signs of both parameters to determine the quadrant of the return num.

ParameterTypeDescription
numYSalNumber
numXSalNumber

Returns: SalNumber.

Static memberNumberCos(angle)

Computes an angle's cosine.

ParameterTypeDescription
angleSalNumber

Returns: SalNumber.

Static memberNumberCosH(angle)

Computes an angle's hyperbolic cosine.

ParameterTypeDescription
angleSalNumber

Returns: SalNumber.

Static memberNumberExponent(num)

Computes a num's exponential function.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberHigh(num)

Returns a number's high-order word num (most significant 16 bits).

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberHypot(x, y)

Computes the length of the hypotenuse of a right triangle, given the lengths of the other two sides.

ParameterTypeDescription
xSalNumber
ySalNumber

Returns: SalNumber.

Static memberNumberLog(num)

Computes a number's natural logarithm.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberLogBase10(num)

Computes a number's base -10 logarithm.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberLow(num)

Returns a number's low-order word num (least significant 16 bits).

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberMax(num1, num2)

Returns the greater of two numbers.

ParameterTypeDescription
num1SalNumber
num2SalNumber

Returns: SalNumber.

Static memberNumberMin(num1, num2)

Returns the lesser of two numbers.

ParameterTypeDescription
num1SalNumber
num2SalNumber

Returns: SalNumber.

Static memberNumberMod(num, mod)

Returns a number's modulo.

ParameterTypeDescription
numSalNumber
modSalNumber

Returns: SalNumber.

Static memberNumberPi(num)

Multiples a number by Pi.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberPower(num, exponent)

Computes x raised to the power of y.

ParameterTypeDescription
numSalNumber
exponentSalNumber

Returns: SalNumber.

Static memberNumberRandInit(seed)

Sets the starting point for generating a series of pseudo-random numbers using SalNumberRandom.

ParameterTypeDescription
seedSalNumber

Returns: SalBoolean.

Static memberNumberRandom()

Generates a pseudo-random number. The numbers generated by this function are integers in the range 0 to 32767.

Returns: SalNumber.

Static memberNumberRound(num)

Returns a rounded number. If the fractional part of a number is greater than or equal to .5, rounds the number up. For example, the number 1.4 returns 1; the number 1.5 returns 2.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberSin(angle)

Computes an angle's sine.

ParameterTypeDescription
angleSalNumber

Returns: SalNumber.

Static memberNumberSinH(angle)

Computes an angle's hyperbolic sine.

ParameterTypeDescription
angleSalNumber

Returns: SalNumber.

Static memberNumberSqrt(num)

Computes a number's square root.

ParameterTypeDescription
numSalNumber

Returns: SalNumber.

Static memberNumberTan(angle)

Computes an angle's tangent.

ParameterTypeDescription
angleSalNumber

Returns: SalNumber.

Static memberNumberTanH(angle)

Computes an angle's hyperbolic tangent.

ParameterTypeDescription
angleSalNumber

Returns: SalNumber.

Static memberNumberToChar(num)

Converts a decimal num to a UNICODE character.

ParameterTypeDescription
numSalNumber

Returns: SalString.

Static memberNumberToHString(handle)

Converts a string handle to the corresponding string instance.

ParameterTypeDescription
handleSalNumber

Returns: SalString.

Static memberNumberToStr(num, nDecimalPlaces, str)

ParameterTypeDescription
numSalNumber
nDecimalPlacesSalNumber
strSalString&

Returns: SalNumber.

Static memberNumberToStrX(num, nDecimalPlaces)

Converts a number to a string.

ParameterTypeDescription
numSalNumber
nDecimalPlacesSalNumber

Returns: SalString.

Static memberNumberToWindowHandle(num)

Converts a number to a window handle.

ParameterTypeDescription
numSalNumber

Returns: SalWindowHandle.

Static memberNumberTruncate(num, precision, scale)

Truncates a number.

ParameterTypeDescription
numSalNumber
precisionSalNumber
scaleSalNumber

Returns: SalNumber.

Static memberObjCreateFromString(className)

Creates an instance of the class.

ParameterTypeDescription
classNameSalStringClass name

Returns: SalFunctionalClass.

Static memberObjGetType(userObject)

This function returns the name of the class for the object.

ParameterTypeDescription
userObjectSalFunctionalClass

Returns: SalString.

Static memberObjIsDerived(userObject, className)

Returns true if the object is derived from the class specified.

ParameterTypeDescription
userObjectSalFunctionalClass
classNameSalString

Returns: SalBoolean.

Static memberObjIsNull(userObject)

This function checks to see if the variable of a functional, coclass, or interface class is null.

ParameterTypeDescription
userObjectSalFunctionalClass

Returns: SalBoolean.

Static memberObjIsValidClasname(className)

Determine whether className holds a valid user-defined class name.

ParameterTypeDescription
classNameSalString

Returns: SalBoolean.

Static memberParentWindow(ctrl)

Returns the handle of an object's parent window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalWindowHandle.

Static memberPause(milliseconds)

Pauses the execution for the specified number of milliseconds.

ParameterTypeDescription
millisecondsSalNumber

Returns: Boolean.

Static memberPicClear(ctrl)

Deletes the contents of a picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberPicGetDescription(ctrl, description, maxLen)

ParameterTypeDescription
ctrlControl
descriptionSalString&
maxLenSalNumber

Returns: SalNumber.

Static memberPicGetImage(ctrl, buffer, type)

ParameterTypeDescription
ctrlControl
bufferSalString&
typeSalNumber&

Returns: SalNumber.

Static memberPicGetImage(ctrl, buffer, type)

ParameterTypeDescription
ctrlControl
bufferSalBinary&
typeSalNumber&

Returns: SalNumber.

Static memberPicGetString(ctrl, format, buffer)

ParameterTypeDescription
ctrlControl
formatSalNumber
bufferSalString&

Returns: SalNumber.

Static memberPicGetString(ctrl, format, buffer)

ParameterTypeDescription
ctrlControl
formatSalNumber
bufferSalBinary&

Returns: SalNumber.

Static memberPicSet(ctrl, resourceType, format)

Inserts a resource into a picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
resourceTypeSalResource
formatSalNumber

Returns: SalBoolean.

Static memberPicSetFile(ctrl, fileName)

Inserts a file's contents into a picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
fileNameSalString

Returns: SalBoolean.

Static memberPicSetFit(ctrl, fit, scaleWidth, scaleHeight)

Deprecated memberDeprecated: PicSetFit(ctrl, fit, scaleWidth, scaleHeight) is deprecated, use PicSetFit(ctrl, fit) Sets the fit for a picture.

ParameterTypeDescription
ctrlControlA SalPicture control.
fitSalNumberOne of PIC_FitBestFit, PIC_FitScale, PIC_FitSizeToFit.
scaleWidthSalNumberNot supported.
scaleHeightSalNumberNot supported.

Returns: SalBoolean.

Static memberPicSetFit(ctrl, fit)

Sets the fit for a picture.

ParameterTypeDescription
ctrlControlA SalPicture control.
fitSalNumberOne of PIC_FitBestFit, PIC_FitScale, PIC_FitSizeToFit.

Returns: SalBoolean.

Static memberPicSetHandle(ctrl, type, handle)

Sets the picture image of a picture window with the handle of a bitmap (HBITMAP) or icon (HICON). Usually, HBITMAPs and HICONs are loaded from DLLs.

ParameterTypeDescription
ctrlControlAn image control.
typeSalNumberOne of PIC_FormatIcon or PIC_FormatBitmap.
handleSalNumberHICON or HBITMAp handle of the image.

Returns: SalBoolean.

Static memberPicSetImage(ctrl, buffer, type)

Inserts the contents of a picture to an image without the image header.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
bufferSalString
typeSalNumber

Returns: SalBoolean.

Static memberPicSetString(ctrl, format, buffer)

Inserts the contents of a string into a picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
formatSalNumber
bufferSalString

Returns: SalBoolean.

Static memberPicSetString(ctrl, format, buffer)

Inserts the contents of a binary buffer into a picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
formatSalNumber
bufferSalBinary

Returns: SalBoolean.

Static memberPixelsToFormUnits(ctrl, nNumPixels, vertical)

Computes the number of form units based on the number of pixels. Form units are a unit of measurement used by functions that move and position objects. Form units are computed using physical units (pixels) in conjunction with a window's font sizes.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nNumPixelsSalNumber
verticalSalBoolean

Returns: SalNumber.

Static memberPostMsg(ctrl, nMsg, wParam, lParam)

Posts the specified message to a window by adding nMsg to windowReceiver's message queue.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nMsgSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalBoolean.

Static memberPrtExtractRect(lParam, left, top, right, bottom)

ParameterTypeDescription
lParamSalNumber
leftSalNumber&
topSalNumber&
rightSalNumber&
bottomSalNumber&

Returns: SalBoolean.

Static memberPrtGetDefault(sDevice, sDriver, sPort)

ParameterTypeDescription
sDeviceSalString&
sDriverSalString&
sPortSalString&

Returns: SalBoolean.

Static memberPrtGetList(refresh)

Returns the list of installed printers.

ParameterTypeDescription
refreshSalBooleanTrue to rebuild the list of printers.

Returns: String[].

Static memberPrtGetParmNum(nParm, nValue)

ParameterTypeDescription
nParmSalNumber
nValueSalNumber&

Returns: SalBoolean.

Static memberPrtPreviewForm(ctrl)

Prints a form window, table window, or dialog box, including its contents and row header flags.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean. bOk

Static memberPrtPrintForm(ctrl)

Prints a form window, table window, or dialog box, including its contents and row header flags.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean. bOk

Static memberPrtSetDefault(sDevice, sDriver, sPort)

Sets the default device (printer), driver, and port.

ParameterTypeDescription
sDeviceSalStringThe default device.
sDriverSalStringNot used.
sPortSalStringNot used.

Returns: SalBoolean. bOk

Static memberPrtSetParmDefaults()

Resets print parameters back to their default values.

Returns: SalBoolean. bOk

Static memberPrtSetParmNum(nParm, nValue)

Sets the value of a print parameter. The print parameters are a set of global variables which are initialized to default values and can be set using SalPrtSetParmNum, retrieved using SalPrtGetParmNum or reinitialized using SalPrtSetParmDefaults.

ParameterTypeDescription
nParmSalNumberA constant that represents the parameter to set; one of the PRT_* constants.
nValueSalNumberThe parameter value.

Returns: SalBoolean. bOk

Static memberPrtSetup(sDevice, sDriver, sPort, bActiveOnly)

ParameterTypeDescription
sDeviceSalString&
sDriverSalString&
sPortSalString&
bActiveOnlySalBoolean

Returns: SalBoolean.

Static memberQueryFieldEdit(ctrl)

Returns the setting of the Field Edit Flag for a data field, multiline field, combo box, table window's context row cell, or picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberQuit()

Exits an application.

Returns: SalBoolean.

Static memberReportClose(reportWindow)

Closes a report window.

ParameterTypeDescription
reportWindowSalWindowHandleReference to the report window to close.

Returns: SalBoolean. True if successful.

Static memberReportCmd(reportWindow, command)

Sends a command to an open report window.

ParameterTypeDescription
reportWindowSalWindowHandleReference to the report window to send the command to.
commandSalNumberThe identifier of the command to send to the report window, one of: RPT_CmdFirstPage, RPT_CmdGoToPageRPT_CmdLastPageRPT_CmdNextPage, RPT_CmdPrevPage, RPT_CmdPrint, RPT_CmdPrinterSetup, RPT_CmdSizeActual, RPT_CmdSizeFit. Not all commands are implemented by all reporting engines/

Returns: SalBoolean.

Static memberReportCreate(fileName, variableNames, inputs, defaultReport, error)

ParameterTypeDescription
fileNameSalString
variableNamesSalString
inputsSalString
defaultReportSalBoolean
errorSalNumber&

Returns: SalBoolean.

Static memberReportCreate(fileName, variableNames, inputs, defaultReport, error, template)

ParameterTypeDescription
fileNameSalString
variableNamesSalString
inputsSalString
defaultReportSalBoolean
errorSalNumber&
templateSalString

Returns: SalBoolean.

Static memberReportDlgOptions(reportWindow, caption, line1, line2, docName)

Sets the options for the report printing dialog box.

ParameterTypeDescription
reportWindowSalWindowHandleReference to the report window to configure.
captionSalStringTitle of the progress dialog.
line1SalStringLine 1 below the title of the progress dialog.
line2SalStringLine 2 below the title of the progress dialog.
docNameSalStringThe of the document being printed to display on the progress dialog.

Returns: SalBoolean. True if successful.

Static memberReportGetDateTimeVar(reportWindow, variableName, value)

ParameterTypeDescription
reportWindowSalWindowHandle
variableNameSalString
valueSalDateTime&

Returns: SalBoolean.

Static memberReportGetNumberVar(reportWindow, variableName, value)

ParameterTypeDescription
reportWindowSalWindowHandle
variableNameSalString
valueSalNumber&

Returns: SalBoolean.

Static memberReportGetObjectVar(reportWindow, variableName, value)

ParameterTypeDescription
reportWindowSalWindowHandle
variableNameSalString
valueSalString&

Returns: SalBoolean.

Static memberReportGetPrinterSettings(windowReport, printerName, orientation, paperType, width, height)

ParameterTypeDescription
windowReportSalWindowHandle
printerNameSalString&
orientationSalNumber&
paperTypeSalNumber&
widthSalNumber&
heightSalNumber&

Returns: SalBoolean.

Static memberReportGetStringVar(reportWindow, variableName, value)

ParameterTypeDescription
reportWindowSalWindowHandle
variableNameSalString
valueSalString&

Returns: SalBoolean.

Static memberReportOpen(owner, template, variableNames, inputs, flags)

ParameterTypeDescription
ownerControl
templateSalString
variableNamesSalString
inputsSalString
flagsSalNumber&

Returns: SalWindowHandle.

Static memberReportPrint(owner, template, variableNames, inputs, copies, options, firstPage, lastPage, error)

ParameterTypeDescription
ownerControl
templateSalString
variableNamesSalString
inputsSalString
copiesSalNumber
optionsSalNumber
firstPageSalNumber
lastPageSalNumber
errorSalNumber&

Returns: SalWindowHandle.

Static memberReportPrintToFile(owner, template, destFile, variableNames, inputs, copies, options, firstPage, lastPage, rtfFormat, error)

ParameterTypeDescription
ownerControl
templateSalString
destFileSalString
variableNamesSalString
inputsSalString
copiesSalNumber
optionsSalNumber
firstPageSalNumber
lastPageSalNumber
rtfFormatSalBoolean
errorSalNumber&

Returns: SalWindowHandle.

Static memberReportPrintToFile(owner, template, destFile, variableNames, inputs, options, firstPage, lastPage, error)

ParameterTypeDescription
ownerControl
templateSalString
destFileSalString
variableNamesSalString
inputsSalString
optionsSalNumber
firstPageSalNumber
lastPageSalNumber
errorSalNumber&

Returns: SalWindowHandle.

Static memberReportSetDateTimeVar(windowReport, variableName, value)

Sets the value of a date/time report variable.

ParameterTypeDescription
windowReportSalWindowHandle
variableNameSalString
valueSalDateTime

Returns: SalBoolean.

Static memberReportSetNumberVar(windowReport, variableName, value)

Sets the value of a numeric report variable.

ParameterTypeDescription
windowReportIntPtr
variableNameSalString
valueSalNumber

Returns: SalBoolean.

Static memberReportSetObjectVar(windowReport, variableName, value)

Sets the value of an object report variable.

ParameterTypeDescription
windowReportIntPtrThe window handle of the report window.
variableNameSalStringThe name of the variable whose value you want to set.
valueSalStringThe value of variableName.

Returns: SalBoolean. bOk

Static memberReportSetPrinterSettings(windowReport, printerName, orientation, paperType, width, height)

Sets the printer properties at runtime. This function should be called wile processing the SAM_ReportStart event.

ParameterTypeDescription
windowReportSalWindowHandle
printerNameSalStringFriendly name of the printer. Pass STRING_Null or an empty string if you do not want to switch the printer.
orientationSalNumberPaper Orientation. Use one of the following constants:
* RPT_Portrait for portrait mode.
* RPT_Landscape for landscape mode.
* Use -1 if you do not want to change the orientation.
paperTypeSalNumberPaper type. Use one of the RPT_Paper* constants or the PaperKind enum.
widthSalNumberPaper width in milli-inches. This value is ignored for all paper types except for RPT_PaperCustom.
heightSalNumberPaper height in milli-inches. This value is ignored for all paper types except for RPT_PaperCustom.

Returns: SalBoolean.

Static memberReportSetStringVar(windowReport, variableName, value)

Sets the value of a string report variable.

ParameterTypeDescription
windowReportIntPtr
variableNameSalString
valueSalString

Returns: SalBoolean.

Static memberReportTableCreate(fileName, table, error)

ParameterTypeDescription
fileNameSalString
tableControl
errorSalNumber&

Returns: SalBoolean.

Static memberReportTableCreate(fileName, table, error, template)

ParameterTypeDescription
fileNameSalString
tableControl
errorSalNumber&
templateSalString

Returns: SalBoolean.

Static memberReportTablePrint(table, sTemplate, nParamArray, nError)

ParameterTypeDescription
tableControl
sTemplateSalString
nParamArraySalArray<SalNumber>
nErrorSalNumber&

Returns: SalWindowHandle.

Static memberReportTableView(table, parent, sTemplate, nError)

ParameterTypeDescription
tableControl
parentControl
sTemplateSalString
nErrorSalNumber&

Returns: SalWindowHandle.

Static memberReportView(owner, parent, template, variableNames, inputs, flags)

ParameterTypeDescription
ownerControl
parentControl
templateSalString
variableNamesSalString
inputsSalString
flagsSalNumber&

Returns: SalWindowHandle.

Static memberResolveType(asm, typeName)

Finds the type in any loaded assembly. The first specified assembly argument has the precedence.

ParameterTypeDescription
asmAssembly
typeNameString

Returns: Type.

Static memberScrollGetPos(ctrl, nPos)

ParameterTypeDescription
ctrlControl
nPosSalNumber&

Returns: SalBoolean.

Static memberScrollGetRange(ctrl, min, max, line, page)

ParameterTypeDescription
ctrlControl
minSalNumber&
maxSalNumber&
lineSalNumber&
pageSalNumber&

Returns: SalBoolean.

Static memberScrollSetPos(ctrl, nPos)

Sets the scrollbar's value.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nPosSalNumber

Returns: SalBoolean.

Static memberScrollSetRange(ctrl, min, max, line, page)

Sets a scroll bar's range, line increment, and page increment.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
minSalNumber
maxSalNumber
lineSalNumber
pageSalNumber

Returns: SalBoolean.

Static memberSendBroadcastMsg(nMsg, wParam, lParam)

Sends a message to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.

ParameterTypeDescription
nMsgSalNumberMessage code to send.
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Static memberSendClassMessage(message, wParam, lParam)

Invokes the message actions implemented or inherited by an object's class when called from either a derived class or from an object that is an instance of a class.

ParameterTypeDescription
messageSalNumberMessage code to send.
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Returns: SalNumber. nMsgReturn

Static memberSendClassMessageNamed(type, nMsg, wParam, lParam)

Invokes the message actions implemented or inherited by an object's class when called from either a derived class or from an object that is an instance of a class. Use this function instead of SalSendClassMessage with a class that is the result of multiple inheritance. It lets you specify which base class message action you want to execute.

ParameterTypeDescription
typeTypeThe ancestor's class name.
nMsgSalNumberMessage code to send.
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Returns: SalNumber. nMsgReturn

Static memberSendMsg(ctrl, nMsg, wParam, lParam)

Sends the specified message to a window. SalSendMsg does not return until the processing for the message is complete.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nMsgSalNumberMessage code to send.
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Returns: SalNumber.

Static memberSendMsgToChildren(ctrl, nMsg, wParam, lParam)

Sends a message to all child items of a form window, dialog box, table window, or MDI window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nMsgSalNumberMessage code to send.
wParamSalNumberFirst argument value to send with the action message.
lParamSalNumbersecond argument value to send with the action message.

Returns: SalBoolean.

Static memberSendValidateMsg()

Sends a SAM_Validate message to the object with the focus data field, multiline field, or table window column if it was edited and sets the wParam and lParam message variables to zero (0).

Returns: SalNumber.

Static memberSetBufferLength(buffer, length)

ParameterTypeDescription
bufferSalBinary&
lengthSalNumber

Returns: SalBoolean.

Static memberSetBufferLength(str, length)

ParameterTypeDescription
strSalString&
lengthSalNumber

Returns: SalBoolean.

Static memberSetDefButton(ctrl)

Sets the default push button of a form window or dialog box.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberSetErrorInfo(code, desc, fileName, context)

Sets COM error information.

ParameterTypeDescription
codeSalNumber
descSalString
fileNameSalString
contextSalNumber

Returns: SalBoolean.

Static memberSetFieldEdit(ctrl, set)

Sets or clears the field edit flag for an editable data field, combo box, multiline text field, table window column, or picture.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
setSalBoolean

Returns: SalBoolean.

Static memberSetFocus(ctrl)

Sets the focus to a specified window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalWindowHandle.

Static memberSetMaxDataLength(ctrl, length)

Sets a limit on the number of characters that a user can enter into a data field, multiline text field, or table window column.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
lengthSalNumber

Returns: SalBoolean.

Static memberSetProfileString(section, entry, value, fileName)

Set the value of an entry in the specified section of an initialization file or registry.

ParameterTypeDescription
sectionSalString
entrySalString
valueSalString
fileNameSalString

Returns: SalBoolean.

Static memberSetWindowLabelText(ctrl, text)

Sets the text of the label associated to a control. To be associated with a specific window, the background text (label control) must immediately precede the window in the tab index sequence. Important: The label control does not require a mnemonic for the function to operate.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
textSalString

Returns: SalBoolean.

Static memberSetWindowLoc(ctrl, x, y)

Moves a window to a new position (x, y) on the X and Y axes.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
xSalNumber
ySalNumber

Returns: SalBoolean.

Static memberSetWindowSize(ctrl, width, height)

Resizes a window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
widthSalNumber
heightSalNumber

Returns: SalBoolean.

Static memberSetWindowText(ctrl, text)

Sets the text of a window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
textSalString

Returns: SalBoolean.

Static memberShowWindow(ctrl)

Makes a window visible.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberShowWindowAndLabel(ctrl)

Makes a window and its associated label visible. A label is the label control that immediately precedes the window in the outline.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberStartTrace(outputType, traceFile, clearExisting)

Begins tracing.

ParameterTypeDescription
outputTypeSalNumber
traceFileSalString
clearExistingSalBoolean

Returns: SalBoolean.

Static memberStaticFirst(form)

Returns a "handle" to the first static on a window

ParameterTypeDescription
formControl

Returns: SalNumber.

Static memberStaticGetLabel(ctrl)

Gets the static "handle" if the label for a specified control

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalNumber.

Static memberStaticGetLoc(form, handle, x, y)

ParameterTypeDescription
formControl
handleSalNumber
xSalNumber&
ySalNumber&

Returns: SalBoolean.

Static memberStaticGetSize(form, handle, width, height)

ParameterTypeDescription
formControl
handleSalNumber
widthSalNumber&
heightSalNumber&

Returns: SalBoolean.

Static memberStaticHide(form, handle)

Hides a static

ParameterTypeDescription
formControl
handleSalNumber

Returns: SalBoolean.

Static memberStaticIsVisible(form, handle)

Determines whether a static is visible.

ParameterTypeDescription
formControl
handleSalNumber

Returns: SalBoolean.

Static memberStaticNext(form, handle)

Returns a "handle" to the last static on a window

ParameterTypeDescription
formControl
handleSalNumber

Returns: SalNumber.

Static memberStaticSetLoc(form, handle, x, y)

Sets the location coordinates of a static

ParameterTypeDescription
formControl
handleSalNumber
xSalNumber
ySalNumber

Returns: SalBoolean.

Static memberStaticSetSize(form, handle, width, height)

Sets the size of a static

ParameterTypeDescription
formControl
handleSalNumber
widthSalNumber
heightSalNumber

Returns: SalBoolean.

Static memberStaticShow(form, handle)

Shows a static

ParameterTypeDescription
formControl
handleSalNumber

Returns: SalBoolean.

Static memberStatusGetText(ctrl, text, maxLen)

ParameterTypeDescription
ctrlControl
textSalString&
maxLenSalNumber

Returns: SalNumber.

Static memberStatusSetText(ctrl, text)

Displays specified text in the status bar of a top-level or MDI window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
textSalString

Returns: SalBoolean.

Static memberStatusSetVisible(ctrl, show)

Shows or hides the status bar on a top-level or MDI window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
showSalBoolean

Returns: SalBoolean.

Static memberStrCompress(str)

ParameterTypeDescription
strSalString&

Returns: SalBoolean.

Static memberStrFirstChar(str, charCode)

ParameterTypeDescription
strSalString&
charCodeSalNumber&

Returns: SalBoolean.

Static memberStrGetBufferLength(str)

Returns the current buffer length of a string.

ParameterTypeDescription
strSalString

Returns: SalNumber.

Static memberStrIsValidCurrency(money, precision, scale)

Verifies that a string represents a valid currency value.

ParameterTypeDescription
moneySalString
precisionSalNumber
scaleSalNumber

Returns: SalBoolean.

Static memberStrIsValidDateTime(str)

Verifies that string represents a valid date/time value.

ParameterTypeDescription
strSalString

Returns: SalBoolean.

Static memberStrIsValidDecimal(str, precision, scale)

Verifies that an entire character string represents a valid decimal value.

ParameterTypeDescription
strSalString
precisionSalNumber
scaleSalNumber

Returns: SalBoolean.

Static memberStrIsValidIdentifierName(str)

Returns TRUE if the string is a valid identifier.

ParameterTypeDescription
strSalString

Returns: SalBoolean.

Static memberStrIsValidNumber(str)

Verifies that a string represents a valid number value.

ParameterTypeDescription
strSalString

Returns: SalBoolean.

Static memberStrLeft(source, length, target)

ParameterTypeDescription
sourceSalString
lengthSalNumber
targetSalString&

Returns: SalNumber.

Static memberStrLeftX(source, length)

Returns a substring of a specified length starting at position zero.

ParameterTypeDescription
sourceSalString
lengthSalNumber

Returns: SalString.

Static memberStrLength(str)

Returns a string's length.

ParameterTypeDescription
strSalString

Returns: SalNumber.

Static memberStrLop(str)

ParameterTypeDescription
strSalString&

Returns: SalNumber.

Static memberStrLower(source, target)

ParameterTypeDescription
sourceSalString
targetSalString&

Returns: SalNumber.

Static memberStrLowerX(source)

Converts a string to lowercase.

ParameterTypeDescription
sourceSalString

Returns: SalString.

Static memberStrMid(source, startPos, length, target)

ParameterTypeDescription
sourceSalString
startPosSalNumber
lengthSalNumber
targetSalString&

Returns: SalNumber.

Static memberStrMidX(source, startPos, length)

Returns a substring, starting at a specified position and containing a specified number of characters.

ParameterTypeDescription
sourceSalString
startPosSalNumber
lengthSalNumber

Returns: SalString.

Static memberStrProper(source, target)

ParameterTypeDescription
sourceSalString
targetSalString&

Returns: SalNumber.

Static memberStrProperX(source)

Converts a string to a proper name.

ParameterTypeDescription
sourceSalString

Returns: SalString.

Static memberStrRepeat(source, times, target)

ParameterTypeDescription
sourceSalString
timesSalNumber
targetSalString&

Returns: SalNumber.

Static memberStrRepeatX(source, times)

Concatenates a string with itself a specified number of times.

ParameterTypeDescription
sourceSalString
timesSalNumber

Returns: SalString.

Static memberStrReplace(source, startPos, length, replace, target)

ParameterTypeDescription
sourceSalString
startPosSalNumber
lengthSalNumber
replaceSalString
targetSalString&

Returns: SalNumber.

Static memberStrReplaceX(source, startPos, length, sReplace)

Replaces characters in one string with characters from another string.

ParameterTypeDescription
sourceSalString
startPosSalNumber
lengthSalNumber
sReplaceSalString

Returns: SalString.

Static memberStrRight(source, length, target)

ParameterTypeDescription
sourceSalString
lengthSalNumber
targetSalString&

Returns: SalNumber.

Static memberStrRightX(source, length)

Returns a string of specified length, starting with the last character in the string.

ParameterTypeDescription
sourceSalString
lengthSalNumber

Returns: SalString.

Static memberStrScan(str1, str2)

Returns the offset of a specified substring.

ParameterTypeDescription
str1SalString
str2SalString

Returns: SalNumber.

Static memberStrSetBufferLength(str, length)

ParameterTypeDescription
strSalString&
lengthSalNumber

Returns: SalBoolean.

Static memberStrToDate(str)

Converts a string to a date/time value.

ParameterTypeDescription
strSalString

Returns: SalDateTime.

Static memberStrTokenize(source, startDel, endDel, target)

Parses a string into substrings (tokens) based on specified start and end delimiters.

ParameterTypeDescription
sourceSalString
startDelSalString
endDelSalString
targetSalArray<SalString>

Returns: SalNumber.

Static memberStrToNumber(str)

Converts a string to a number.

ParameterTypeDescription
strSalString

Returns: SalNumber.

Static memberStrTrim(source, target)

ParameterTypeDescription
sourceSalString
targetSalString&

Returns: SalNumber.

Static memberStrTrimX(source)

Strips leading and trailing blanks and compresses multiple spaces and tabs within a string to single spaces.

ParameterTypeDescription
sourceSalString

Returns: SalString.

Static memberStrUncompress(str)

ParameterTypeDescription
strSalString&

Returns: SalBoolean.

Static memberStrUpper(source, target)

ParameterTypeDescription
sourceSalString
targetSalString&

Returns: SalNumber.

Static memberStrUpperX(source)

Converts a string to uppercase.

ParameterTypeDescription
sourceSalString

Returns: SalString.

Static memberTabAddPage(control, pageIndex, pageName)

Adds a tab page at a valid index position.

ParameterTypeDescription
controlControl
pageIndexSalNumber
pageNameSalString

Returns: SalBoolean.

Static memberTabAddPageEx(control, pageIndex, pageName, imageFile, tooltip)

Adds a tab page at a valid index position. You can include an image and a tooltip.

ParameterTypeDescription
controlControl
pageIndexSalNumber
pageNameSalString
imageFileSalString
tooltipSalString

Returns: SalBoolean.

Static memberTabAssociateChild(control, pageIndex, child)

Associates a child to a tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber
childControl

Returns: SalBoolean.

Static memberTabAttachWindow(control, pageIndex, form)

Assigns a child window created at runtime to the specified tab page as its container window. You can programmatically create a Form Window or Dialog Box as child and assign it to a tab page by using this function.

ParameterTypeDescription
controlControl
pageIndexSalNumber
formControl

Returns: SalBoolean.

Static memberTabDetachWindow(control, pageIndex)

Detaches a child window from the specified tab control.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalWindowHandle.

Static memberTabDisablePage(control, pageIndex)

Disables a tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalBoolean.

Static memberTabDisassociateChild(control, pageIndex, child)

Disassociates a child with a tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber
childControl

Returns: SalBoolean.

Static memberTabEnablePage(control, pageIndex)

Enables a tab page

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalBoolean.

Static memberTabGetActivePage(control)

Gets the current active tab page.

ParameterTypeDescription
controlControl

Returns: SalNumber.

Static memberTabGetPageIndex(control, pageName)

Gets the tab page index as specified by the tab name.

ParameterTypeDescription
controlControl
pageNameSalString

Returns: SalNumber.

Static memberTabGetPageName(control, pageIndex)

ets the name of the tab page (not the title that appears on the tab page at runtime).

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalString.

Static memberTabGetPageTitle(control, pageIndex)

Gets the tab page title as specified by the tab index.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalString.

Static memberTabGetPageWindow(control, pageIndex)

Gets the window handle of the specified tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalWindowHandle.

Static memberTabGetTooltip(control, pageIndex, tooltip, maxLength)

ParameterTypeDescription
controlControl
pageIndexSalNumber
tooltipSalString&
maxLengthSalNumber

Returns: SalNumber.

Static memberTabHidePage(control, pageIndex)

Hides a tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalBoolean.

Static memberTabHideStrip(control)

Hides the tab page selector inside the specified tab control. While the tab selector strop is hidden, you can change the active tab page by using SalTabSetActivePage.

ParameterTypeDescription
controlControl

Returns: SalBoolean.

Static memberTabPageCount(control)

Returns the number of tab pages.

ParameterTypeDescription
controlControl

Returns: SalNumber.

Static memberTabRemovePage(control, pageIndex)

Removes a tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalBoolean.

Static memberTabRenamePage(control, pageIndex, pageName)

Renames a tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber
pageNameSalString

Returns: SalBoolean.

Static memberTabSetActivePage(control, pageIndex)

Activates a tab specified by a particular tab index.

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalBoolean.

Static memberTabSetPageTitle(control, pageIndex, pageTitle)

Sets the title of the specified tab page.

ParameterTypeDescription
controlControl
pageIndexSalNumber
pageTitleSalString

Returns: SalBoolean.

Static memberTabSetTooltip(control, pageIndex, tooltip)

Sets the tooltip text on the specified tab page. Tooltip text appears only on tab selector, not on a tab container window.

ParameterTypeDescription
controlControl
pageIndexSalNumber
tooltipSalString

Returns: SalBoolean.

Static memberTabShowPage(control, pageIndex)

Shows a tab page

ParameterTypeDescription
controlControl
pageIndexSalNumber

Returns: SalBoolean.

Static memberTabShowStrip(control)

Shows the tab page selector inside the specified tab control.

ParameterTypeDescription
controlControl

Returns: SalBoolean.

Static memberTabUpdate(control)

Updates the Tab bar after a SalTabAssociateChild or SalTabDisassociateChild is called.

ParameterTypeDescription
controlControl

Returns: SalBoolean.

Static memberTBarSetVisible(ctrl, show)

Shows or hides the tool bar on a top-level or MDI window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
showSalBoolean

Returns: SalBoolean.

Static memberTblAnyRows(table, flagsOn, flagsOff)

Determines whether any rows in the specified table window match certain flags.

ParameterTypeDescription
tableControl
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Static memberTblClearSelection(table)

Deselects all rows of a table window.

ParameterTypeDescription
tableControl

Returns: SalBoolean.

Static memberTblColumnAverage(table, columnId, flagsOn, flagsOff)

Computes the average of all column values or only specified column values in a table window.

ParameterTypeDescription
tableControl
columnIdSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalNumber.

Static memberTblColumnSum(table, columnId, flagsOn, flagsOff)

Computes the sum of all column values or only specified column values in a table window.

ParameterTypeDescription
tableControl
columnIdSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalNumber.

Static memberTblCopyRows(table, flagsOn, flagsOff)

Copies the contents of the specified table window rows to the Clipboard in text format.

ParameterTypeDescription
tableControl
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Static memberTblCreateColumn(table, columnPos, displayWidth, maxChars, title)

Creates a table window column of string data type at runtime.

ParameterTypeDescription
tableControl
columnPosSalNumber
displayWidthSalNumber
maxCharsSalNumber
titleSalString

Returns: SalNumber.

Static memberTblCreateColumnEx(table, columnPos, displayWidth, title, maxChars, dataType)

Creates a table window column using a given data type at runtime. Allowed types are DT_String, DT_Number and DT_DateTime

ParameterTypeDescription
tableControl
columnPosSalNumber
displayWidthSalNumber
titleSalString
maxCharsSalNumber
dataTypeSalNumber

Returns: SalNumber.

Static memberTblDefineCheckBoxColumn(column, flags, checkedValue, uncheckedValue)

Define a column as a check box.

ParameterTypeDescription
columnControl
flagsSalNumber
checkedValueSalString
uncheckedValueSalString

Returns: SalBoolean.

Static memberTblDefineDropDownListColumn(column, flags, lines)

Define a column as a drop down list.

ParameterTypeDescription
columnControl
flagsSalNumber
linesSalNumber

Returns: SalBoolean.

Static memberTblDefinePopupEditColumn(column, flags, lines)

Define a column as a popup edit window.

ParameterTypeDescription
columnControl
flagsSalNumber
linesSalNumber

Returns: SalBoolean.

Static memberTblDefineRowHeader(table, title, width, flags, column)

Defines the appearance and behavior of a table window's row header.

ParameterTypeDescription
tableControlThe table window or grid.
titleSalStringThe title of the row header column.
widthSalNumberThe width of the row header in pixels.
flagsSalNumberThe row header attributes. You can combine these flags using the OR (|) operator.
columnControlThe column that the row header mirrors.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTblDefineSplitWindow(table, rowsLowerHalf, dragAdjust)

Splits a table window horizontally.

ParameterTypeDescription
tableControl
rowsLowerHalfSalNumber
dragAdjustSalBoolean

Returns: SalBoolean.

Static memberTblDeleteRow(table, nRow, nFlag)

Deletes a row from a table window but not from the database.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
nRowSalNumber
nFlagSalNumber

Returns: SalBoolean.

Static memberTblDeleteSelected(table, sql)

Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle

Returns: SalBoolean.

Static memberTblDeleteSelected(table, sql, errorHandler)

Applies a SQL DELETE statement to all table window rows with the ROW Selected flag.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberTblDestroyColumns(table)

Destroys all automatic columns created by SalTblCreateColumn or SalTblPopulate at runtime. This function only works on table windows that contain only automatic columns.

ParameterTypeDescription
tableControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberTblDoDeletes(table, sql, flagsOn)

Applies a SQL DELETE statement to all table window rows that have flagsOn flags.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle
flagsOnSalNumber

Returns: SalBoolean.

Static memberTblDoDeletes(table, sql, flagsOn, errorHandler)

Applies a SQL DELETE statement to all table window rows that have flagsOn flags.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle
flagsOnSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberTblDoInserts(table, sql, clearFlags)

Applies a SQL INSERT statement to all the rows in a table window that have the ROW New flag.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle
clearFlagsSalBoolean

Returns: SalBoolean.

Static memberTblDoInserts(table, sql, clearFlags, errorHandler)

Applies a SQL INSERT statement to all the rows in a table window that have the ROW New flag.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle
clearFlagsSalBoolean
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberTblDoUpdates(table, sql, clearFlags, errorHandler)

Applies a SQL UPDATE statement to all table window rows with the Row Edited flag.

ParameterTypeDescription
tableControl
sqlSalSqlHandle
clearFlagsSalBoolean
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberTblDoUpdates(table, sql, clearFlags)

Applies a SQL UPDATE statement to all table window rows with the Row Edited flag.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
sqlSalSqlHandle
clearFlagsSalBoolean

Returns: SalBoolean.

Static memberTblFetchRow(table, nRow)

Sends a SAM_FetchRow message to a table window if the row you specify is not currently in the table window cache.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
nRowSalNumber

Returns: SalNumber.

Static memberTblFindNextRow(table, row, flagsOn, flagsOff)

ParameterTypeDescription
tableControl
rowSalNumber&
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Static memberTblFindPrevRow(table, row, flagsOn, flagsOff)

ParameterTypeDescription
tableControl
rowSalNumber&
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Static memberTblGetColumnText(table, columnId, text)

ParameterTypeDescription
tableControl
columnIdSalNumber
textSalString&

Returns: SalBoolean.

Static memberTblGetColumnTitle(column, text, maxLen)

ParameterTypeDescription
columnControl
textSalString&
maxLenSalNumber

Returns: SalNumber.

Static memberTblGetColumnWindow(table, col, flags)

Gets the handle of a table window column.

ParameterTypeDescription
tableControlTarget control on which to execute the call.
colSalNumber
flagsSalNumber

Returns: SalWindowHandle.

Static memberTblInsertRow(table, nRow)

Inserts a new blank row into a table window.

ParameterTypeDescription
tableControl
nRowSalNumber

Returns: SalNumber.

Static memberTblKillEdit(table)

Takes a row out of edit mode and selects the row. This causes the row to receive both SAM_Validate and SAM_KillFocus messages.

ParameterTypeDescription
tableControl

Returns: SalBoolean.

Static memberTblKillFocus(table)

Turns off the table window's focus frame.

ParameterTypeDescription
tableControl

Returns: SalBoolean.

Static memberTblObjectsFromPoint(table, x, y, row, column, flags)

ParameterTypeDescription
tableControl
xSalNumber
ySalNumber
rowSalNumber&
columnSalWindowHandle&
flagsSalNumber&

Returns: SalBoolean.

Static memberTblPasteRows(table)

Pastes the contents of the Clipboard to the specified table window. Assumes the Clipboard data is in text format with cells delimited by tab characters and rows delimited by end-of-line characters. Inserts the new rows into the table window without overwriting existing rows, and converts the data to the data types of the corresponding table window columns.

ParameterTypeDescription
tableControl

Returns: SalBoolean.

Static memberTblPopulate(table, sql, select, method)

Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.

ParameterTypeDescription
tableControl
sqlSalSqlHandle
selectSalString
methodSalNumber

Returns: SalBoolean.

Static memberTblPopulate(table, sql, select, method, errorHandler)

Compiles, binds, and executes a SQL SELECT statement, then fetches the rows of the result set and populates a table window with them.

ParameterTypeDescription
tableControl
sqlSalSqlHandle
selectSalString
methodSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberTblQueryCheckBoxColumn(column, flags, checkedValue, uncheckedValue)

ParameterTypeDescription
columnControl
flagsSalNumber&
checkedValueSalString&
uncheckedValueSalString&

Returns: SalBoolean.

Static memberTblQueryColumnCellType(column, type)

ParameterTypeDescription
columnControl
typeSalNumber&

Returns: SalBoolean.

Static memberTblQueryColumnFlags(column, flags)

Tests the state of a table window column's flags.

ParameterTypeDescription
columnControl
flagsSalNumber

Returns: SalBoolean.

Static memberTblQueryColumnID(column)

Gets a table window column's identifier.

ParameterTypeDescription
columnControl

Returns: SalNumber.

Static memberTblQueryColumnPos(column)

Gets a table window column's relative position.

ParameterTypeDescription
columnControl

Returns: SalNumber.

Static memberTblQueryColumnWidth(column, width)

ParameterTypeDescription
columnControl
widthSalNumber&

Returns: SalBoolean.

Static memberTblQueryContext(table)

Returns a table window's current context row. Before sending a SAM_FetchRow message, automatically sets the context row so that assignments made while processing the message reference the correct row.

ParameterTypeDescription
tableControl

Returns: SalNumber.

Static memberTblQueryDropDownListColumn(column, flags, lines)

ParameterTypeDescription
columnControl
flagsSalNumber&
linesSalNumber&

Returns: SalBoolean.

Static memberTblQueryFocus(table, row, column)

ParameterTypeDescription
tableControl
rowSalNumber&
columnSalWindowHandle&

Returns: SalBoolean.

Static memberTblQueryLinesPerRow(table, nLines)

ParameterTypeDescription
tableControl
nLinesSalNumber&

Returns: SalBoolean.

Static memberTblQueryLockedColumns(table)

Retrieves the number of locked table window columns.

ParameterTypeDescription
tableControl

Returns: SalNumber.

Static memberTblQueryPopupEditColumn(column, flags, lines)

ParameterTypeDescription
columnControl
flagsSalNumber&
linesSalNumber&

Returns: SalBoolean.

Static memberTblQueryRowFlags(table, row, flags)

Queries a row's flags.

ParameterTypeDescription
tableControl
rowSalNumber
flagsSalNumber

Returns: SalBoolean.

Static memberTblQueryRowHeader(table, title, maxTitle, width, flags, windowCol)

ParameterTypeDescription
tableControl
titleSalString&
maxTitleSalNumber
widthSalNumber&
flagsSalNumber&
windowColSalWindowHandle&

Returns: SalBoolean.

Static memberTblQueryScroll(table, position, minRange, maxRange)

ParameterTypeDescription
tableControl
positionSalNumber&
minRangeSalNumber&
maxRangeSalNumber&

Returns: SalBoolean.

Static memberTblQuerySplitWindow(table, rowsLowerHalf, dragAdjust)

ParameterTypeDescription
tableControl
rowsLowerHalfSalNumber&
dragAdjustSalBoolean&

Returns: SalBoolean.

Static memberTblQueryTableFlags(table, flags)

Tests the state of a table window's flags.

ParameterTypeDescription
tableControl
flagsSalNumber

Returns: SalBoolean.

Static memberTblQueryVisibleRange(table, minRange, maxRange)

ParameterTypeDescription
tableControl
minRangeSalNumber&
maxRangeSalNumber&

Returns: SalBoolean.

Static memberTblReset(table)

Clears a table window by discarding all rows from the table window cache and setting the table range to 0, -1.

ParameterTypeDescription
tableControl

Returns: SalBoolean.

Static memberTblScroll(table, row, column, flags)

Scrolls a table window to the specified row and column.

ParameterTypeDescription
tableControl
rowSalNumber
columnControl
flagsSalNumber

Returns: SalBoolean.

Static memberTblScroll(table, row, column)

Scrolls a table window to the specified row and column.

ParameterTypeDescription
tableControl
rowSalNumber
columnControl

Returns: SalBoolean.

Static memberTblSetCellTextColor(column, colorValue, discardable)

Changes a table window cell's text color.

ParameterTypeDescription
columnControl
colorValueSalNumber
discardableSalBoolean

Returns: SalBoolean.

Static memberTblSetCellTextColor(column, colorValue)

Changes a table window cell's text color.

ParameterTypeDescription
columnControl
colorValueSalNumber

Returns: SalBoolean.

Static memberTblSetColumnFlags(column, flags, set)

Sets or clears a table window column's flags.

ParameterTypeDescription
columnControl
flagsSalNumber
setSalBoolean

Returns: SalBoolean.

Static memberTblSetColumnPos(column, nPos)

Moves a table window column to a new position.

ParameterTypeDescription
columnControl
nPosSalNumber

Returns: SalBoolean.

Static memberTblSetColumnText(table, columndId, text)

Assigns data to a column of a table window's context row.

ParameterTypeDescription
tableControl
columndIdSalNumber
textSalString

Returns: SalBoolean.

Static memberTblSetColumnTitle(column, title)

Sets the title of a table window column.

ParameterTypeDescription
columnControl
titleSalString

Returns: SalBoolean.

Static memberTblSetColumnWidth(column, width)

Sets a table window column's display width.

ParameterTypeDescription
columnControl
widthSalNumber

Returns: SalBoolean.

Static memberTblSetContext(table, nRow)

Sets a table window's context row. Setting the context row does not send a SAM_FetchRow message. If the row is not currently in memory, creates a new row in memory and sets its cell values to null.

ParameterTypeDescription
tableControl
nRowSalNumber

Returns: SalBoolean.

Static memberTblSetFlagsAnyRows(table, flags, set, flagsOn, flagsOff)

Sets or clears row flags.

ParameterTypeDescription
tableControl
flagsSalNumber
setSalBoolean
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean.

Static memberTblSetFocusCell(table, row, column)

Sets the focus to the specified table window cell (row and column). Puts the table window into edit mode and lets the user select a portion of the data in the cell.

ParameterTypeDescription
tableControl
rowSalNumber
columnControl

Returns: SalBoolean.

Static memberTblSetFocusRow(table, row)

Sets a table window's focus frame row.

ParameterTypeDescription
tableControl
rowSalNumber

Returns: SalBoolean.

Static memberTblSetLinesPerRow(table, lines)

Sets the height of a row in lines.

ParameterTypeDescription
tableControl
linesSalNumber

Returns: SalBoolean.

Static memberTblSetLockedColumns(table, lockedColumns)

Sets the number of locked table window columns.

ParameterTypeDescription
tableControl
lockedColumnsSalNumber

Returns: SalBoolean.

Static memberTblSetRange(table, min, max)

Defines the minimum and maximum rows (range) of a table.

ParameterTypeDescription
tableControl
minSalNumber
maxSalNumber

Returns: SalBoolean.

Static memberTblSetRow(table, rowPosition)

Sets the focus to the first, last, next, or previous row in a table window.

ParameterTypeDescription
tableControl
rowPositionSalNumber

Returns: SalNumber.

Static memberTblSetRowFlags(table, row, flags, set)

Sets or clears a table window row's flags.

ParameterTypeDescription
tableControl
rowSalNumber
flagsSalNumber
setSalBoolean

Returns: SalBoolean.

Static memberTblSetTableFlags(table, flags, set)

Sets or clears a table window's flags.

ParameterTypeDescription
tableControl
flagsSalNumber
setSalBoolean

Returns: SalBoolean.

Static memberTblSortRows(table, columnId, order)

Sorts the rows of a table window based on the values in one of the table window's columns.

ParameterTypeDescription
tableControl
columnIdSalNumber
orderSalNumber

Returns: SalBoolean.

Static memberTimerKill(ctrl, eventId)

Destroys an object's system timer.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
eventIdSalNumber

Returns: SalBoolean.

Static memberTimerSet(ctrl, eventId, milliseconds)

Creates a system timer for a given object. When a timer event occurs, sends SAM_Timer messages to the object in specified intervals. Timers are a limited global resource. Your application must check the value returned by SalTimerSet to verify that the timer was created.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
eventIdSalNumber
millisecondsSalNumber

Returns: SalBoolean.

Static memberTrace(severity, textToWrite)

Outputs a string to the trace output target.

ParameterTypeDescription
severitySalNumber
textToWriteSalString

Returns: SalBoolean.

Static memberTrackPopupMenu(owner, menuName, flags, x, y, callback)

Creates pop-up menus at runtime.

ParameterTypeDescription
ownerControl
menuNameSalString
flagsSalNumber
xSalNumber
ySalNumber
callbackAction<ContextMenu>

Returns: SalBoolean.

Static memberTrackPopupMenu(owner, menuType, flags, x, y, callback)

Creates pop-up menus at runtime.

ParameterTypeDescription
ownerControl
menuTypeType
flagsSalNumber
xSalNumber
ySalNumber
callbackAction<ContextMenu>

Returns: SalBoolean.

Static memberTreeCollapseItem(ctrl, hItem)

Collapse a tree item. If the tree item handle is 0, then the top level tree items of the tree control are collapsed.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeDeleteItem(ctrl, hItem)

Removes a tree item from a tree control. All child items of the tree item are also removed.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the item was deleted successfully.

Static memberTreeDemoteItem(ctrl, hItem)

Moves a tree item so it becomes the child of its previous sibling. This function will fail if the tree item has no previous sibling.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeEditItem(ctrl, hItem)

Allows the user to edit the value of the tree item's label. SAM_Validate is sent to the tree control when the edit control loses focus with wParam indicating the handle to the tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if edit has been activated.

Static memberTreeEnableItem(ctrl, hItem, bEnable)

Enables the tree item when bEnable is true, disables the tree item when bEnable is false.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bEnableSalBooleanSet to TRUE to enable the item. Set to FALSE to disable the item.

Returns: SalBoolean. previous state of the item before this function was called. TRUE if it was enabled, FALSE if it was disabled.

Static memberTreeExpandItem(ctrl, hItem)

Expand a tree item. If the tree item handle is 0, then the top level tree items of the tree control are expanded.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeFindItemByData(ctrl, hItem, nData)

Finds a tree item by its Object Data. Returns 0 if not found. Searches the child items of the tree item handle argument(hItem). If the handle is 0, searches the top level tree items.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
nDataSalNumberData of the item to find.

Returns: SalNumber. Handle of the tree item whose Data matches the nData parameter.

Static memberTreeFindItemByTitle(ctrl, hItem, sTitle)

Finds a tree item by its object title. Returns 0 if not found. Searches the child items of the tree item handle argument. If the handle is 0, searches the top level tree items.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
sTitleSalStringTitle of the item to find.

Returns: SalNumber. Handle of the item whose title matches the sTitle parameter.

Static memberTreeGetFirstItem(ctrl, hItem)

Gets the first child tree item of the passed tree item handle. Returns 0 if not found. If the handle is 0, returns the first child of the tree control. If the ShowRootLines attribute is set to Yes, and 0 is passed in, returns the root node of the tree control.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalNumber. Handle of the tree item.

Static memberTreeGetItemCount(ctrl, hItem)

Gets the number of child items. If the handle argument is 0, then number of first level child items is returned.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalNumber. Number of items.

Static memberTreeGetItemData(ctrl, hItem)

Returns the numeric value assigned to the tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalNumber. Numeric value assigned to the tree item.

Static memberTreeGetItemParent(ctrl, hItem)

Returns the handle of hItem's parent, or 0 if hItem is a top level child of the tree control.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalNumber. Handle of hItem's parent.

Static memberTreeGetItemText(ctrl, hItem)

Returns the string title of the item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalString. String title of the item.

Static memberTreeGetItemTooltip(ctrl, hItem)

Returns the current tooltip for the tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalString. Current tooltip for the tree item.

Static memberTreeGetNextItem(ctrl, hItem)

Gets the next sibling tree item of the passed tree item handle. Returns 0 if there are no more sibling tree items.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalNumber. Handle of the next tree item.

Static memberTreeGetPrevItem(ctrl, hItem)

Gets the previous sibling tree item of the passed tree item handle. Returns 0 if there are no more sibling items.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalNumber. Handle of the previous tree item.

Static memberTreeGetSelectedItem(ctrl)

Returns the handle to the selected tree item, or 0 if no item is selected.

ParameterTypeDescription
ctrlControlTree control.

Returns: SalNumber. Handle to the selected tree item, or 0 if no item is selected.

Static memberTreeInsertItem(ctrl, hItem, nIndex, sTitle)

Inserts a tree item into the tree control. The new item will be a child of nItem.If nItem is 0, the tree item is added as a top level child of the tree control. If nIndex is greater than or equal to the number of child items, or if nIndex is less than zero, the new item is appended.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle of the tree item which will be the parent of the new item.
nIndexSalNumberIndex to insert (starting at zero).
sTitleSalStringTitle of the new item.

Returns: SalNumber. Handle of the newly created item.

Static memberTreeItemHasCheckBox(ctrl, hItem)

Returns true if the tree item has a checkbox displayed.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the item has a checkbox displayed, FALSE if not.

Static memberTreeItemIsChecked(ctrl, hItem)

Returns true if the item checkbox is checked. Returns false if the checkbox is not displayed.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the checkbox is checked. If the checkbox is not checked, or is not displayed, bIsChecked is FALSE.

Static memberTreeItemIsExpanded(ctrl, hItem)

Returns whether the item is expanded.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the item is expanded, FALSE if not.

Static memberTreeItemIsSelected(ctrl, hItem)

Returns whether the item is selected.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the item is selected, FALSE if not.

Static memberTreeItemsHaveCheckBoxes(ctrl)

Returns true if the tree shows checkboxes next to the items.

ParameterTypeDescription
ctrlControlTree control.

Returns: SalBoolean. TRUE if the items have a checkbox displayed, FALSE if not.

Static memberTreeMoveDownItem(ctrl, hItem)

Moves a tree item downward. This functions fails if the tree item is the last child of its parent.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeMoveItem(ctrl, hItem, hParentItem, nPosition)

Moves a tree node and all its sub-nodes to a new location in the tree control.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
hParentItemSalNumberHandle to the new parent tree item.
nPositionSalNumberPosition in the new parents list of children to place the new child (0-n).

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeMoveUpItem(ctrl, hItem)

Moves a tree item upward . This functions fails if the tree item is the first child of its parent.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreePromoteItem(ctrl, hItem)

Moves a tree item so it becomes the sibling of its parent. This functions fails if the tree item has no grandparent.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeReset(ctrl, bRemove)

Clears a tree control with the option to retain or destroy design-time nodes.

ParameterTypeDescription
ctrlControlTree control.
bRemoveSalBooleanTRUE = Remove all nodes. FALSE = Remove nodes created dynamically; the tree goes back to the initial state.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it does not succeed.

Static memberTreeSetItemChecked(ctrl, hItem, bChecked)

Sets or clears the checkbox. If the checkbox is not displayed, this function has no effect.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bCheckedSalBooleanTRUE to set the box as checked, FALSE to clear the checkbox.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemData(ctrl, hItem, nValue)

Sets the numeric value of the tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
nValueSalNumberValue to set.

Returns: SalNumber. Value that was previously assigned to the tree item.

Static memberTreeSetItemEditable(ctrl, hItem, bEditable)

Sets whether the tree item's label can be edited. If bEditable is true, the label can be edited.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bEditableSalBooleanWhether to enable or disable editing.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemFontEnh(ctrl, hItem, nFontEnh)

Sets the font enhancement for a tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
nFontEnhSalNumber

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemImage(ctrl, hItem, bSelected, sImageFile)

Sets the image of a tree item. If the bSelected parameter is true, the selected image is set; otherwise the non-selected image is set.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bSelectedSalBooleanIf TRUE, use selected image. If FALSE, use non-selected image.
sImageFileSalStringFilename of the image.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemImageFromBinary(ctrl, hItem, bSelected, nFormat, bPicture)

Sets the image of a tree item. If the bSelected parameter is true, the selected image is set; otherwise the non-selected image is set.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bSelectedSalBooleanIf TRUE, use selected image. If FALSE, use non-selected image.
nFormatSalNumberThe format of the picture contents: PIC_FormatBitmap, PIC_FormatIcon, PIC_FormatObject
bPictureSalBinaryThe image data to be assigned to the tree node.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemImageFromResource(ctrl, hItem, bSelected, tResource)

Sets the image of a tree item. If the bSelected parameter is true, the selected image is set; otherwise the non-selected image is set.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bSelectedSalBooleanIf TRUE, use selected image. If FALSE, use non-selected image.
tResourceSalResourceResource object.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemText(ctrl, hItem, sText)

Sets the title of the item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
sTextSalStringText to set as the title for this tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemTextColor(ctrl, hItem, nColor)

Sets the text color of the tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
nColorSalNumberColor to set.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetItemTooltip(ctrl, hItem, sTooltip)

Sets the tooltip for the tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
sTooltipSalStringTooltip text.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeSetSelectedItem(ctrl, hItem)

Selects a tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeShowItemCheckBox(ctrl, hItem, bShow)

Shows or hides the checkbox for a tree item.

ParameterTypeDescription
ctrlControlTree control.
hItemSalNumberHandle to the tree item.
bShowSalBooleanTRUE to show the checkbox, FALSE to hide it.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberTreeShowItemsCheckBoxes(ctrl, bShow)

Shows or hides the checkboxes for a tree control.

ParameterTypeDescription
ctrlControlTree control.
bShowSalBooleanTRUE to show the checkboxes, FALSE to hide them.

Returns: SalBoolean. TRUE if the function succeeds and FALSE if it fails.

Static memberUpdateWindow(ctrl)

Forces the update of a window.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberUseEventLog(useLog, resume)

Enables logging of unhandled exceptions in the event log.

ParameterTypeDescription
useLogSalBoolean
resumeSalBoolean

Returns: SalBoolean.

Static memberUseRegistry(useRegistry, companyName)

Redirects all SalProfile* functions to use the Registry.

ParameterTypeDescription
useRegistrySalBoolean
companyNameSalString

Returns: SalBoolean.

Static memberValidateSet(window, state, lParam)

Deprecated memberDeprecated: Not supported. Not supported.

ParameterTypeDescription
windowSalWindowHandle
stateSalBoolean
lParamSalNumber

Returns: SalBoolean.

Static memberWaitCursor(bOn)

Displays or removes the hourglass cursor.

ParameterTypeDescription
bOnSalBoolean

Returns: SalBoolean.

Static memberWindowClassName(ctrl)

Return the name of a window's class as a string.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalString.

Static memberWindowGetDockSetting(window, orientation)

ParameterTypeDescription
windowSalWindowHandle
orientationSalNumber&

Returns: SalBoolean.

Static memberWindowGetProperty(ctrl, name, value)

ParameterTypeDescription
ctrlControl
nameSalString
valueSalString&

Returns: SalBoolean.

Static memberWindowHandleToNumber(window)

Converts a SalWindowHandle to a number.

ParameterTypeDescription
windowSalWindowHandleThe handle to convert.

Returns: SalNumber. nWnd

Static memberWindowHandleToNumber(file)

Converts a SalFileHandle to a number.

ParameterTypeDescription
fileSalFileHandle

Returns: SalNumber.

Static memberWindowHandleToNumber(sql)

Converts a SalSqlHandle to a number.

ParameterTypeDescription
sqlSalSqlHandle

Returns: SalNumber.

Static memberWindowHandleToNumber(session)

Converts a SalSqlSessionHandle to a number.

ParameterTypeDescription
sessionSalSqlSessionHandle

Returns: SalNumber.

Static memberWindowIsDerivedFromClass(ctrl, type)

Determines whether a window is an instance of the specified class.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
typeType

Returns: SalBoolean.

Static memberWindowSetProperty(ctrl, name, value, length)

Sets the value of a named property.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
nameSalString
valueSalString
lengthSalNumber

Returns: SalBoolean.

Static memberXMLDeserialize<T>(obj, filePath)

ParameterTypeDescription
T
objT&
filePathSalString

Returns: SalBoolean.

Static memberXMLGetLastError(errorCode, errorMessage)

ParameterTypeDescription
errorCodeSalNumber&
errorMessageSalString&

Returns: SalBoolean.

Static memberXMLSerialize<T>(obj, filePath)

Serializes the object to a XML file.

ParameterTypeDescription
T
objT
filePathSalString

Returns: SalBoolean.

Static memberYieldEnable(set)

Deprecated memberDeprecated: Use Sal.Yield(window). Not Supported.

ParameterTypeDescription
setSalBoolean

Returns: SalBoolean.

Static memberYieldQueryState()

Deprecated memberDeprecated: Use Sal.Yield(window). Not Supported.

Returns: SalBoolean.

Static memberYieldStartMessages(window)

Deprecated memberDeprecated: Use Sal.Yield(window). Not Supported.

ParameterTypeDescription
windowSalWindowHandle

Returns: SalBoolean.

Static memberYieldStopMessages()

Deprecated memberDeprecated: Use Sal.Yield(window). Not Supported.

Returns: SalBoolean.