Skip to main content

Sal

Namespace: PPJ.Runtime

Assembly: PPJ.Runtime.50 (5.0.0.0)

Provides SAL-compatible functions for migrated application code.

public class Sal

Most functions delegate to the corresponding runtime type or control. Return conventions vary by operation; consult each function's return documentation.

Example:

using PPJ.Runtime;

SalNumber red = Sal.ColorFromRGB(255, 0, 0);
SalString caption = "Ready";
SalNumber length = Sal.StrLength(caption);

Properties

Static member Interpreter

ScriptEngine: Gets or sets the expression interpreter used by SAL evaluation.

The getter lazily creates a ScriptEngine with a strict environment when no interpreter is installed.

Static member SalReportType

Type: Gets or sets the report control type instantiated by the SAL reporting functions.

When unset, the getter reads the Sal.SalReportType application setting. If no override is configured, report creation selects an engine from the report file extension. The type must implement ISalReport and have a parameterless constructor.

Methods

Static member Abort(exitCode)

Signals an application-abort request by throwing AbortException.

ParameterTypeDescription
exitCodeSalNumberIgnored; no exit code is applied.

Returns: SalBoolean. This method does not return.

Static member ActiveXAutoErrorMode(on)

ParameterTypeDescription
onSalBoolean

Returns: SalBoolean.

Static member ActiveXDoVerb(ctrl, verb, size)

ParameterTypeDescription
ctrlControl
verbSalNumber
sizeSalBoolean

Returns: SalBoolean.

Static member ActiveXGetObject(ctrl, obj)

ParameterTypeDescription
ctrlControl
objSalObject

Returns: SalBoolean.

Static member AppDisable()

Returns: SalBoolean.

Static member AppEnable()

Returns: SalBoolean.

Static member AppFind(name, activate)

ParameterTypeDescription
nameSalString
activateSalBoolean

Returns: SalWindowHandle.

Static member ArrayAvg(array)

ParameterTypeDescription
arraySalArray<SalNumber>The SalArray<SalNumber> value on which to perform the operation.

Returns: SalNumber.

Static member ArrayDimCount(array, dim)

ParameterTypeDescription
arraySalArrayThe SalArray value on which to perform the operation.
dim by referenceSalNumber

Returns: SalBoolean.

Static member ArrayGetLowerBound(array, dim, bound)

ParameterTypeDescription
arraySalArrayThe SalArray value on which to perform the operation.
dimSalNumber
bound by referenceSalNumber

Returns: SalBoolean.

Static member ArrayGetUpperBound(array, dim, bound)

ParameterTypeDescription
arraySalArrayThe SalArray value on which to perform the operation.
dimSalNumber
bound by referenceSalNumber

Returns: SalBoolean.

Static member ArrayIsEmpty(array)

Tests whether a SAL array contains any allocated elements.

ParameterTypeDescription
arraySalArrayThe non-null SAL array.

Returns: SalBoolean. The array's IsEmpty value.

Static member ArrayMax(array)

ParameterTypeDescription
arraySalArray<SalNumber>The SalArray<SalNumber> value on which to perform the operation.

Returns: SalNumber.

Static member ArrayMin(array)

ParameterTypeDescription
arraySalArray<SalNumber>The SalArray<SalNumber> value on which to perform the operation.

Returns: SalNumber.

Static member ArrayQueryBounds(array, min, max)

ParameterTypeDescription
arraySalArrayThe SalArray value on which to perform the operation.
min by referenceSalNumber
max by referenceSalNumber

Returns: SalNumber.

Static member ArraySetBounds(array, lower, upper)

ParameterTypeDescription
arraySalArrayThe SalArray value on which to perform the operation.
lowerSalNumber
upperSalNumber

Returns: SalBoolean.

Static member ArraySetUpperBound(array, dim, bound)

ParameterTypeDescription
arraySalArrayThe SalArray value on which to perform the operation.
dimSalNumber
boundSalNumber

Returns: SalBoolean.

Static member ArraySum(array)

ParameterTypeDescription
arraySalArray<SalNumber>The SalArray<SalNumber> value on which to perform the operation.

Returns: SalNumber.

Static member BringWindowToTop(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member CenterWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member ClearField(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member ColorFromRGB(red, green, blue)

Creates a SAL color value from red, green, and blue components.

ParameterTypeDescription
redSalNumberThe red intensity from 0 through 255.
greenSalNumberThe green intensity from 0 through 255.
blueSalNumberThe blue intensity from 0 through 255.

Returns: SalNumber. The Win32 COLORREF representation of the color.

Values outside the component range cause Color.FromArgb to throw.

Static member ColorGet(ctrl, colorIndex)

ParameterTypeDescription
ctrlControl
colorIndexSalNumber

Returns: SalNumber.

Static member ColorGetSysColor(colorIndex)

ParameterTypeDescription
colorIndexSalNumber

Returns: SalNumber.

Static member ColorSet(ctrl, colorIndex, colorValue)

ParameterTypeDescription
ctrlControl
colorIndexSalNumber
colorValueSalNumber

Returns: SalBoolean.

Static member ColorToRGB(colorValue, red, green, blue)

Extracts the red, green, and blue components of a color.

ParameterTypeDescription
colorValueSalNumberThe color to decode.
red by referenceSalNumberReceives the red component from 0 through 255.
green by referenceSalNumberReceives the green component from 0 through 255.
blue by referenceSalNumberReceives the blue component from 0 through 255.

Returns: SalBoolean. True after the operation completes.

Static member ColorToRGB(color, red, green, blue)

Extracts the red, green, and blue components of a color.

ParameterTypeDescription
colorColorThe color to decode.
red by referenceSalNumberReceives the red component from 0 through 255.
green by referenceSalNumberReceives the green component from 0 through 255.
blue by referenceSalNumberReceives the blue component from 0 through 255.

Returns: SalBoolean. True after the operation completes.

Static member CompileAndEvaluate(expression, error, errorPos, numReturn, sReturn, dtReturn, windowReturn, inhibitErrors, context)

Compiles and executes an expression in a supplied variable context.

ParameterTypeDescription
expressionSalStringThe expression, optionally prefixed with Set or If.
error by referenceSalNumberReceives an error code; cleared before evaluation.
errorPos by referenceSalNumberReceives the error position; cleared before evaluation.
numReturn by referenceSalNumberReceives a numeric or Boolean result when applicable.
sReturn by referenceSalStringReceives a string result when applicable.
dtReturn by referenceSalDateTimeReceives a date/time result when applicable.
windowReturn by referenceSalWindowHandleReceives a window-handle result when applicable.
inhibitErrorsSalBooleanTrue to return recognized evaluation errors through the receive arguments; false to allow exceptions.
contextObjectThe object, SalStringContext, SQL context, or weak reference used for variable resolution.

Returns: SalNumber. An EVAL_ result-type code, or zero on a handled error.

Only the receive argument matching the result type is assigned. Set expressions do not assign a result value.

Static member ContextBreak()

Deprecated memberDeprecated: Use this. Retains the ContextBreak operation as a compatibility stub.

Returns: SalString. SalString.Null.

Logs the unsupported call. Reference arguments are left unchanged.

Static member ContextCurrent(context)

Creates a string-evaluation context around an object.

ParameterTypeDescription
contextObjectThe object used for variable resolution.

Returns: SalStringContext. A SalStringContext wrapping a temporary SQL context.

Static member ContextMenuSetPopup(ctrl, menuName, flags)

ParameterTypeDescription
ctrlControl
menuNameSalString
flagsSalNumber

Returns: SalBoolean.

Static member ContextMenuSetPopup(ctrl, menuType, flags)

ParameterTypeDescription
ctrlControl
menuTypeType
flagsSalNumber

Returns: SalBoolean.

Static member CreateWindow(wndToCreate, parent, parameters)

ParameterTypeDescription
wndToCreateType
parentControl
parametersObject[]

Returns: SalWindowHandle.

Example:

Create a modeless form and retain its handle for later interaction.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class CustomerWindow : SalFormWindow
{
public CustomerWindow(SalNumber customerId)
{
Text = "Customer " + customerId.ToString();
}
}

public static class WindowExample
{
public static SalWindowHandle Open(Control owner)
{
SalWindowHandle window = Sal.CreateWindow(
typeof(CustomerWindow), owner, (SalNumber)42);
if (!window.IsNull)
window.SetText("Customer details");
return window;
}
}

Static member CreateWindow(formName, parent, parameters)

Creates a modeless SAL form.

ParameterTypeDescription
formNameSalStringThe form type name resolved using the calling assembly.
parentControlThe owner or parent control; required when creating a child form.
parametersObject[]Arguments passed through the form creation path.

Returns: SalWindowHandle. A handle to the created form, or a null handle if creation does not retain a live form.

Example:

Create a modeless form and retain its handle for later interaction.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class CustomerWindow : SalFormWindow
{
public CustomerWindow(SalNumber customerId)
{
Text = "Customer " + customerId.ToString();
}
}

public static class WindowExample
{
public static SalWindowHandle Open(Control owner)
{
SalWindowHandle window = Sal.CreateWindow(
(SalString)typeof(CustomerWindow).FullName, owner, (SalNumber)42);
if (!window.IsNull)
window.SetText("Customer details");
return window;
}
}

Static member CreateWindow(formName, parent)

Creates a modeless SAL form.

ParameterTypeDescription
formNameSalStringThe form type name resolved using the calling assembly.
parentControlThe owner or parent control; required when creating a child form.

Returns: SalWindowHandle. A handle to the created form, or a null handle if creation does not retain a live form.

Example:

Create a modeless form and retain its handle for later interaction.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class CustomerWindow : SalFormWindow
{
public CustomerWindow()
{
Text = "Customers";
}
}

public static class WindowExample
{
public static SalWindowHandle Open(Control owner)
{
SalWindowHandle window = Sal.CreateWindow(
(SalString)typeof(CustomerWindow).FullName, owner);
if (!window.IsNull)
window.SetText("Customer details");
return window;
}
}

Static member CreateWindowEx(wndToCreate, parent, left, top, width, height, flags, parameters)

Creates a modeless SAL form with explicit creation options.

ParameterTypeDescription
wndToCreateTypeThe form type to instantiate.
parentControlThe owner or parent control; required when creating a child form.
leftSalNumberThe child form's horizontal position in form units.
topSalNumberThe child form's vertical position in form units.
widthSalNumberThe child form's width in form units.
heightSalNumberThe child form's height in form units.
flagsSalNumberThe combined CREATE_AsChild, CREATE_Hidden, and CREATE_Border options.
parametersObject[]Arguments passed through the form creation path.

Returns: SalWindowHandle. A handle to the created form, or a null handle if creation does not retain a live form.

The embedded child-form path applies the supplied bounds; other form types retain their normal creation behavior.

Static member CreateWindowEx(formName, parent, left, top, width, height, flags)

Creates a modeless SAL form with explicit creation options.

ParameterTypeDescription
formNameSalStringThe form type name resolved using the calling assembly.
parentControlThe owner or parent control; required when creating a child form.
leftSalNumberThe child form's horizontal position in form units.
topSalNumberThe child form's vertical position in form units.
widthSalNumberThe child form's width in form units.
heightSalNumberThe child form's height in form units.
flagsSalNumberThe combined CREATE_AsChild, CREATE_Hidden, and CREATE_Border options.

Returns: SalWindowHandle. A handle to the created form, or a null handle if creation does not retain a live form.

The embedded child-form path applies the supplied bounds; other form types retain their normal creation behavior.

Static member CreateWindowExFromStr(formName, parent, left, top, width, height, flags)

Creates a modeless SAL form with explicit creation options.

ParameterTypeDescription
formNameSalStringThe form type name resolved using the calling assembly.
parentControlThe owner or parent control; required when creating a child form.
leftSalNumberThe child form's horizontal position in form units.
topSalNumberThe child form's vertical position in form units.
widthSalNumberThe child form's width in form units.
heightSalNumberThe child form's height in form units.
flagsSalNumberThe combined CREATE_AsChild, CREATE_Hidden, and CREATE_Border options.

Returns: SalWindowHandle. A handle to the created form, or a null handle if creation does not retain a live form.

The embedded child-form path applies the supplied bounds; other form types retain their normal creation behavior.

Static member CreateWindowFromStr(formName, parent)

Creates a modeless SAL form.

ParameterTypeDescription
formNameSalStringThe form type name resolved using the calling assembly.
parentControlThe owner or parent control; required when creating a child form.

Returns: SalWindowHandle. A handle to the created form, or a null handle if creation does not retain a live form.

Static member CursorClear(ctrl, type)

ParameterTypeDescription
ctrlControl
typeSalNumber

Returns: SalBoolean.

Static member CursorSet(ctrl, resource, type)

Loads a cursor resource and assigns it to a control.

ParameterTypeDescription
ctrlControlThe target control.
resourceSalResourceCursorThe cursor resource to load.
typeSalNumberThe cursor context selector.

Returns: SalBoolean. The result of SalWindow.SetCursor.

Static member CursorSet(ctrl, resourceId, type)

ParameterTypeDescription
ctrlControl
resourceIdSalNumber
typeSalNumber

Returns: SalBoolean.

Static member CursorSetFile(ctrl, fileName, type)

ParameterTypeDescription
ctrlControl
fileNameSalString
typeSalNumber

Returns: SalBoolean.

Static member CursorSetString(ctrl, blob, type)

Loads a cursor from SAL string blob data.

ParameterTypeDescription
ctrlControlThe target control.
blobSalStringThe blob containing cursor data.
typeSalNumberThe cursor context selector.

Returns: SalBoolean. The result of SalWindow.SetCursor.

Static member DateConstruct(year, month, day, hour, minute, second)

Constructs a SAL date/time from component values.

ParameterTypeDescription
yearSalNumberThe year.
monthSalNumberThe month offset, with January represented by one.
daySalNumberThe day offset, with the first day represented by one.
hourSalNumberThe hour offset.
minuteSalNumberThe minute offset.
secondSalNumberThe second offset.

Returns: SalDateTime. The constructed SalDateTime.

The constructor normalizes component overflow by applying offsets to the start of the year.

Static member DateCurrent()

Returns the current local date and time.

Returns: SalDateTime. SalDateTime.Current.

Static member DateDay(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateHour(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateMinute(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateMonth(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateMonthBegin(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalDateTime.

Static member DateQuarter(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateQuarterBegin(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalDateTime.

Static member DateSecond(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateToStr(date, target)

ParameterTypeDescription
dateSalDateTimeThe SalDateTime value on which to perform the operation.
target by referenceSalString

Returns: SalNumber.

Static member DateWeekBegin(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalDateTime.

Static member DateWeekday(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateYear(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalNumber.

Static member DateYearBegin(dateTime)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.

Returns: SalDateTime.

Static member DestroyWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member DisableWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member DisableWindowAndLabel(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member DlgChooseColor(ctrl, colorValue)

Displays the color-selection dialog.

ParameterTypeDescription
ctrlControlThe dialog owner.
colorValue by referenceSalNumberReceives the accepted SAL color; unchanged if the dialog is canceled.

Returns: SalBoolean. True on acceptance; otherwise, false.

The wrapper initializes the dialog color to zero rather than the incoming receive value.

Static member DlgChooseFont(ctrl, name, size, enhancements, color)

Displays the font-selection dialog and copies an accepted selection to SAL values.

ParameterTypeDescription
ctrlControlThe dialog owner.
name by referenceSalStringReceives the selected font family.
size by referenceSalNumberReceives the selected size in points.
enhancements by referenceSalNumberReceives the FONT_Enh flags.
color by referenceSalNumberReceives the selected SAL color.

Returns: SalBoolean. True on acceptance; false on cancellation or an unsuccessful dialog operation.

Input receive values do not initialize the dialog; the wrapper starts with empty or zero values.

Static member DlgGetDockStatus(windowDlg, orientation)

Retains the DlgGetDockStatus operation as a compatibility stub.

ParameterTypeDescription
windowDlgSalWindowHandleIgnored; no operation is performed.
orientation by referenceSalNumberIgnored; no operation is performed.

Returns: SalBoolean. False.

Reference arguments, if any, are left unchanged.

Static member DlgOpenFile(ctrl, dialogTitle, filters, filtersCount, filterIndex, fileName, filePath)

Displays a file-selection dialog.

ParameterTypeDescription
ctrlControlThe dialog owner.
dialogTitleSalStringThe dialog title.
filtersSalArray<SalString>Alternating filter descriptions and patterns, beginning at index zero.
filtersCountSalNumberThe maximum number of filter pairs to read.
filterIndex by referenceSalNumberThe initial filter selection; receives the accepted selection.
fileName by referenceSalStringThe initial file name; receives the selected name without its directory.
filePath by referenceSalStringThe initial directory or path; receives the selected full path.

Returns: SalBoolean. True if the user accepts a selection; otherwise, false.

Only complete description/pattern pairs are used. Receive arguments are updated after acceptance.

Static member DlgOpenFileMulti(ctrl, dialogTitle, filters, filtersCount, filterIndex, fileNames, filePaths, fileCount)

Displays a multiple-file selection dialog.

ParameterTypeDescription
ctrlControlThe dialog owner.
dialogTitleSalStringThe dialog title.
filtersSalArray<SalString>Alternating filter descriptions and patterns, beginning at index zero.
filtersCountSalNumberThe maximum number of filter pairs to read.
filterIndex by referenceSalNumberThe initial filter selection; receives the accepted selection.
fileNames by referenceSalArray<SalString>Receives a new SAL array of selected file names.
filePaths by referenceSalArray<SalString>Receives a new SAL array of selected full paths.
fileCount by referenceSalNumberReceives the number of selected files.

Returns: SalBoolean. True if the user accepts a selection; otherwise, false.

Only complete description/pattern pairs are used. Receive arguments are updated after acceptance.

Static member DlgSaveFile(ctrl, dialogTitle, filters, filtersCount, filterIndex, fileName, filePath)

Displays a save-file dialog.

ParameterTypeDescription
ctrlControlThe dialog owner.
dialogTitleSalStringThe dialog title.
filtersSalArray<SalString>Alternating filter descriptions and patterns, beginning at index zero.
filtersCountSalNumberThe maximum number of filter pairs to read.
filterIndex by referenceSalNumberThe initial filter selection; receives the accepted selection.
fileName by referenceSalStringThe initial file name; receives the selected name without its directory.
filePath by referenceSalStringThe initial directory or path; receives the selected full path.

Returns: SalBoolean. True if the user accepts a selection; otherwise, false.

Only complete description/pattern pairs are used. Receive arguments are updated after acceptance.

Static member DlgSetDockStatus(windowDlg, orientation)

Retains the DlgSetDockStatus operation as a compatibility stub.

ParameterTypeDescription
windowDlgSalWindowHandleIgnored; no operation is performed.
orientationSalNumberIgnored; no operation is performed.

Returns: SalBoolean. False.

Reference arguments, if any, are left unchanged.

Static member DragDropDisableDrop()

Disables dropping for the current drag operation.

Returns: SalBoolean. True after the operation completes.

Static member DragDropEnableDrop()

Enables dropping for the current drag operation.

Returns: SalBoolean. True after the operation completes.

Static member DragDropGetSource(window, x, y)

Retrieves the recorded drag-and-drop source.

ParameterTypeDescription
window by referenceSalWindowHandleReceives the control handle, or a null handle when no control is recorded.
x by referenceSalNumberReceives the horizontal coordinate, or zero when no control is recorded.
y by referenceSalNumberReceives the vertical coordinate, or zero when no control is recorded.

Returns: SalBoolean. True after the operation completes.

Static member DragDropGetTarget(windowTarget, x, y)

Retrieves the recorded drag-and-drop target.

ParameterTypeDescription
windowTarget by referenceSalWindowHandleReceives the control handle, or a null handle when no control is recorded.
x by referenceSalNumberReceives the horizontal coordinate, or zero when no control is recorded.
y by referenceSalNumberReceives the vertical coordinate, or zero when no control is recorded.

Returns: SalBoolean. True after the operation completes.

Static member DragDropStart(ctrl)

Starts a SAL drag operation for a control.

ParameterTypeDescription
ctrlControlThe target control.

Returns: SalBoolean. False when no SalWindow adapter is available; otherwise, the adapter's DragDropStart result.

Static member DragDropStop()

Stops the current SAL drag operation.

Returns: SalBoolean. False when the recorded source has no SalWindow adapter; otherwise, the adapter's DragDropStop result.

Static member DrawMenuBar(ctrl)

Refreshes the main menu of a form.

ParameterTypeDescription
ctrlControlThe form whose main menu is refreshed; other control types are passed as null.

Returns: SalBoolean. The result of SalWindow.UpdateMainMenu.

Static member DropFilesAcceptFiles(ctrl, accept)

ParameterTypeDescription
ctrlControl
acceptSalBoolean

Returns: SalBoolean.

Static member DropFilesQueryFiles(ctrl, arrayFiles)

Copies the current drag-and-drop file names into a SAL array.

ParameterTypeDescription
ctrlControlIgnored; the current drag data is used.
arrayFilesSalArray<SalString>The array to make dynamic, clear, and fill from index zero.

Returns: SalNumber. The number of copied files, or zero when no files are available.

When there are no files, the destination array is left unchanged.

Static member DropFilesQueryPoint(ctrl, x, y)

Copies the recorded drag location to coordinate arguments.

ParameterTypeDescription
ctrlControlIgnored; the recorded drag location is used.
x by referenceSalNumberReceives the horizontal coordinate.
y by referenceSalNumberReceives the vertical coordinate.

Returns: SalBoolean. True after the operation completes.

Static member EditCanCopy()

Returns: SalBoolean.

Static member EditCanCopyTo()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Retains the EditCanCopyTo operation as a compatibility stub.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member EditCanCut()

Returns: SalBoolean.

Static member EditCanPaste()

Returns: SalBoolean.

Static member EditCanPasteFrom()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Retains the EditCanPasteFrom operation as a compatibility stub.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member EditCanUndo()

Returns: SalBoolean.

Static member EditClear()

Returns: SalBoolean.

Static member EditCopy()

Returns: SalBoolean.

Static member EditCopyString(str)

Copies text through the runtime clipboard service.

ParameterTypeDescription
strSalStringThe text to copy.

Returns: SalBoolean. True after the operation completes.

Static member EditCopyTo()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Retains the EditCopyTo operation as a compatibility stub.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member EditCut()

Returns: SalBoolean.

Static member EditPaste()

Returns: SalBoolean.

Static member EditPasteFrom()

Deprecated memberDeprecated: Not supported. There is no OLE support in .NET. Retains the EditPasteFrom operation as a compatibility stub.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member EditPasteString(str)

Reads text through the runtime clipboard service.

ParameterTypeDescription
str by referenceSalStringReceives pasted text on success; unchanged on failure.

Returns: SalBoolean. The success result of the clipboard read.

Static member EditUndo()

Returns: SalBoolean.

Static member EnableWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member EnableWindowAndLabel(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member EndDialog(ctrl, returnValue)

ParameterTypeDescription
ctrlControl
returnValueSalNumber

Returns: SalBoolean.

Static member EndTrace()

Returns: SalBoolean.

Static member FileClose(file)

ParameterTypeDescription
file by referenceSalFileHandleThe SalFileHandle value on which to perform the operation.

Returns: SalBoolean.

Static member FileCopy(sourcePath, destPath, overwrite)

ParameterTypeDescription
sourcePathSalString
destPathSalString
overwriteSalBoolean

Returns: SalNumber.

Static member FileCreateDirectory(directory)

ParameterTypeDescription
directorySalString

Returns: SalBoolean.

Static member FileGetChar(file, charValue)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
charValue by referenceSalNumber

Returns: SalBoolean.

Static member FileGetChar(file)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.

Returns: SalNumber.

Static member FileGetCurrentDirectory(path)

ParameterTypeDescription
path by referenceSalString

Returns: SalBoolean.

Static member FileGetDateTime(fileName, dateTime)

ParameterTypeDescription
fileNameSalString
dateTime by referenceSalDateTime

Returns: SalBoolean.

Static member FileGetDrive()

Returns: SalString.

Static member FileGetStr(file, buffer, bufferSize)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
buffer by referenceSalString
bufferSizeSalNumber

Returns: SalBoolean.

Static member FileOpen(file, fileName, style)

ParameterTypeDescription
file by referenceSalFileHandleThe SalFileHandle value on which to perform the operation.
fileNameSalString
styleSalNumber

Returns: SalBoolean.

Static member FileOpen(file, fileName, style, encoding)

ParameterTypeDescription
file by referenceSalFileHandleThe SalFileHandle value on which to perform the operation.
fileNameSalString
styleSalNumber
encodingEncoding

Returns: SalBoolean.

Static member FileOpenExt(file, fileName, style, reopen)

Deprecated memberDeprecated: Use Sal.FileOpen(). Retains the FileOpenExt operation as a compatibility stub.

ParameterTypeDescription
file by referenceSalFileHandleIgnored; no operation is performed.
fileNameSalStringIgnored; no operation is performed.
styleSalNumberIgnored; no operation is performed.
reopen by referenceSalStringIgnored; no operation is performed.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member FilePutChar(file, charValue)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
charValueSalNumber

Returns: SalBoolean.

Static member FilePutStr(file, str)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
strSalString

Returns: SalBoolean.

Static member FileRead(file, buffer, bufferLength)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
buffer by referenceSalString
bufferLengthSalNumber

Returns: SalNumber.

Static member FileRead(file, buffer, bufferLength)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
buffer by referenceSalBinary
bufferLengthSalNumber

Returns: SalNumber.

Static member FileRemoveDirectory(directory)

ParameterTypeDescription
directorySalString

Returns: SalBoolean.

Static member FileSeek(file, bytes, position)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
bytesSalNumber
positionSalNumber

Returns: SalBoolean.

Static member FileSetCurrentDirectory(path)

ParameterTypeDescription
pathSalString

Returns: SalBoolean.

Static member FileSetDateTime(fileName, dateTime)

ParameterTypeDescription
fileNameSalString
dateTimeSalDateTime

Returns: SalBoolean.

Static member FileSetDrive(sDriveLetter)

ParameterTypeDescription
sDriveLetterSalString

Returns: SalBoolean.

Static member FileTell(file)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.

Returns: SalNumber.

Static member FileWrite(file, buffer, bufferLength)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
bufferSalString
bufferLengthSalNumber

Returns: SalNumber.

Static member FileWrite(file, buffer, bufferLength)

ParameterTypeDescription
fileSalFileHandleThe SalFileHandle value on which to perform the operation.
bufferSalBinary
bufferLengthSalNumber

Returns: SalNumber.

Static member FindWindow(ctrl, windowName)

ParameterTypeDescription
ctrlControl
windowNameSalString

Returns: SalWindowHandle.

Static member FireWindowActions(ctrl, message, wParam, lParam)

Runs a control's SAL window-action handlers.

ParameterTypeDescription
ctrlControlThe target control.
messageSalNumberThe action or message identifier.
wParamSalNumberThe action's wParam.
lParamSalNumberThe action's lParam.

Returns: SalNumber. The Return value of the resulting window-actions event.

Static member FireWindowActionsToChildren(ctrl, message, wParam, lParam)

ParameterTypeDescription
ctrlControl
messageSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalBoolean.

Static member FmtCopyProfile(ctrl, profile)

ParameterTypeDescription
ctrlControl
profileSalNumber

Returns: SalBoolean.

Static member FmtFieldToStr(ctrl, text, format)

Retrieves the control text with optional display formatting.

ParameterTypeDescription
ctrlControlThe target control.
text by referenceSalStringReceives the result when text is available; unchanged otherwise.
formatSalBooleanTrue to apply display formatting; false to request the underlying text.

Returns: SalBoolean. True if text was obtained; otherwise, false.

Static member FmtFormatDateTime(dateTime, sPicture)

ParameterTypeDescription
dateTimeSalDateTimeThe SalDateTime value on which to perform the operation.
sPictureSalString

Returns: SalString.

Static member FmtFormatNumber(num, sPicture)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.
sPictureSalString

Returns: SalString.

Static member FmtGetFormat(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member FmtGetInputMask(ctrl, mask)

Retrieves the input mask of an edit-capable control.

ParameterTypeDescription
ctrlControlThe target control.
mask by referenceSalStringReceives the input mask when accepted; unchanged when the method returns false.

Returns: SalBoolean. True for a nonempty available mask; false for an empty mask or unsupported control.

Static member FmtGetParmNum(ctrl, parm, value)

ParameterTypeDescription
ctrlControl
parmSalNumber
value by referenceSalNumber

Returns: SalBoolean.

Static member FmtGetParmStr(ctrl, parm, value)

ParameterTypeDescription
ctrlControl
parmSalNumber
value by referenceSalString

Returns: SalBoolean.

Static member FmtGetPicture(ctrl, format)

Retrieves the display format of an edit-capable control.

ParameterTypeDescription
ctrlControlThe target control.
format by referenceSalStringReceives the format on success; unchanged if no format is available.

Returns: SalBoolean. True if a non-null format was obtained; otherwise, false.

Static member FmtGetProfile(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member FmtIsValidField(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member FmtIsValidInputMask(mask)

ParameterTypeDescription
maskSalString

Returns: SalBoolean.

Static member FmtIsValidPicture(format, type)

ParameterTypeDescription
formatSalString
typeSalNumber

Returns: SalBoolean.

Static member FmtKeepMask(keep)

Sets whether masked text retains its mask when retrieved.

ParameterTypeDescription
keepSalBooleanTrue to retain the mask; false to remove it.

Returns: SalBoolean. The newly assigned setting.

Static member FmtSetFormat(ctrl, format)

ParameterTypeDescription
ctrlControl
formatSalNumber

Returns: SalBoolean.

Static member FmtSetInputMask(ctrl, mask)

ParameterTypeDescription
ctrlControl
maskSalString

Returns: SalBoolean.

Static member FmtSetParmNum(ctrl, parm, value)

ParameterTypeDescription
ctrlControl
parmSalNumber
valueSalNumber

Returns: SalBoolean.

Static member FmtSetParmStr(ctrl, parm, value)

ParameterTypeDescription
ctrlControl
parmSalNumber
valueSalString

Returns: SalBoolean.

Static member FmtSetPicture(ctrl, picture)

ParameterTypeDescription
ctrlControl
pictureSalString

Returns: SalBoolean.

Static member FmtSetProfile(ctrl, profile)

ParameterTypeDescription
ctrlControl
profileSalNumber

Returns: SalBoolean.

Static member FmtStrToField(ctrl, value, format)

ParameterTypeDescription
ctrlControl
valueSalString
formatSalBoolean

Returns: SalBoolean.

Static member FmtUnmaskInput(ctrl, text)

Retrieves control text with input-mask literals removed.

ParameterTypeDescription
ctrlControlThe target control.
text by referenceSalStringReceives the unmasked text on success; unchanged when the control is unavailable.

Returns: SalBoolean. True if the control was available; otherwise, false.

Static member FmtValidateField(ctrl, validate)

Validates the current field value.

ParameterTypeDescription
ctrlControlThe control to validate.
validateSalNumberFMT_Validate_Dialog to request an error dialog; other values suppress it.

Returns: SalBoolean. The result of SalWindow.Validate.

Static member FontGet(ctrl, name, size, enhancement)

ParameterTypeDescription
ctrlControl
name by referenceSalString
size by referenceSalNumber
enhancement by referenceSalNumber

Returns: SalBoolean.

Static member FontGetNames(type, fonts)

Copies available font family names into a SAL array.

ParameterTypeDescription
typeSalNumberIgnored; printer and screen fonts are not distinguished by this wrapper.
fontsSalArray<SalString>The array to make dynamic, clear, and populate from index zero.

Returns: SalNumber. The number of copied names, or zero if none are available.

The destination remains unchanged when no font names are available.

Static member FontGetSizes(get, fontName, fontSizes)

Deprecated memberDeprecated: Use FontFamilies instead. Retains the FontGetSizes operation as a compatibility stub.

ParameterTypeDescription
getSalNumberIgnored; no operation is performed.
fontNameSalStringIgnored; no operation is performed.
fontSizes by referenceSalArray<SalNumber>Ignored; no operation is performed.

Returns: SalNumber. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member FontSet(ctrl, name, size, enhancement)

ParameterTypeDescription
ctrlControl
nameSalString
sizeSalNumber
enhancementSalNumber

Returns: SalBoolean.

Static member FormGetParmNum(ctrl, paramType, value)

ParameterTypeDescription
ctrlControl
paramTypeSalNumber
value by referenceSalNumber

Returns: SalBoolean.

Static member FormUnitsToPixels(ctrl, formUnits, vertical)

ParameterTypeDescription
ctrlControlThe target control.
formUnitsSalNumber
verticalSalBoolean

Returns: SalNumber.

Applies the referenced operation to the control represented by this handle.

Static member GetBufferLength(buffer)

ParameterTypeDescription
bufferSalBinaryThe SalBinary value on which to perform the operation.

Returns: SalNumber.

Static member GetBufferLength(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalNumber.

Static member GetDataType(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member GetDefButton(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalWindowHandle.

Static member GetFirstChild(ctrl, typeMask)

ParameterTypeDescription
ctrlControl
typeMaskSalNumber

Returns: SalWindowHandle.

Static member GetFocus()

Returns: SalWindowHandle.

Static member GetHintText(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalString.

Static member GetItemName(ctrl, name)

ParameterTypeDescription
ctrlControl
name by referenceSalString

Returns: SalBoolean.

Static member GetMaxDataLength(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member GetNextChild(ctrl, typeMask)

ParameterTypeDescription
ctrlControl
typeMaskSalNumber

Returns: SalWindowHandle.

Static member GetProfileInt(section, entry, defaultValue, fileName)

Reads an integer profile setting through SalApplication.

ParameterTypeDescription
sectionSalStringThe profile section.
entrySalStringThe entry name.
defaultValueSalNumberThe fallback value, converted to an unsigned 32-bit integer before lookup.
fileNameSalStringThe profile file name.

Returns: SalNumber. The integer returned by SalApplication.GetProfileInt.

Static member GetProfileString(section, entry, defaultValue, value, fileName)

ParameterTypeDescription
sectionSalString
entrySalString
defaultValueSalString
value by referenceSalString
fileNameSalString

Returns: SalNumber.

Static member GetReportObject(handle)

Finds the report control identified by a control handle.

ParameterTypeDescription
handleIntPtrThe handle of the report or a control containing the report.

Returns: ISalReport. The report implementation, or null when none is found.

If the control itself is not a report, its child controls are searched.

Static member GetVersion()

Returns the runtime application version value.

Returns: SalNumber. SalApplication.Version.

Static member GetWindowLabel(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalWindowHandle.

Static member GetWindowLabelText(ctrl, text, maxLength)

ParameterTypeDescription
ctrlControl
text by referenceSalString
maxLengthSalNumber

Returns: SalNumber.

Static member GetWindowLoc(ctrl, x, y)

Retrieves a control's location in form units.

ParameterTypeDescription
ctrlControlThe target control.
x by referenceSalNumberReceives the horizontal location.
y by referenceSalNumberReceives the vertical location.

Returns: SalBoolean. True after the operation completes.

Static member GetWindowSize(ctrl, width, height)

Retrieves a control's size in form units.

ParameterTypeDescription
ctrlControlThe target control.
width by referenceSalNumberReceives the width.
height by referenceSalNumberReceives the height.

Returns: SalBoolean. True after the operation completes.

Static member GetWindowState(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member GetWindowText(ctrl, text, maxLen)

ParameterTypeDescription
ctrlControl
text by referenceSalString
maxLenSalNumber

Returns: SalNumber.

Static member HideWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member HideWindowAndLabel(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member HStringToNumber(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalNumber.

Static member IdleKick()

Returns: SalBoolean.

Static member IdleRegisterWindow(ctrl, message, wParam, lParam)

ParameterTypeDescription
ctrlControl
messageSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalBoolean.

Static member IdleUnregisterWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member InvalidateWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsButtonChecked(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsNull(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsValidDateTime(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsValidDecimal(ctrl, precision, scale)

ParameterTypeDescription
ctrlControl
precisionSalNumber
scaleSalNumber

Returns: SalBoolean.

Static member IsValidInteger(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsValidNumber(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsWindowEnabled(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member IsWindowVisible(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member JSONDeserializeUDV<T>(obj, urlOrJson, userName, password, error)

Deserializes JSON text or attempts to retrieve and deserialize JSON from a URL.

ParameterTypeDescription
TThe type of the value to serialize or deserialize.
obj outTReceives the deserialized value; initialized to default(T).
urlOrJsonSalStringJSON text, or an absolute URL from which to request JSON with HTTP GET.
userNameSalStringThe optional Basic-authentication user name.
passwordSalStringThe Basic-authentication password.
error outSalStringReceives an exception message on failure; initially empty.

Returns: SalBoolean. True if processing completes without an exception; false for empty input or a caught exception.

An empty response leaves the result at default(T). The URL path dereferences null header and parameter arrays; the overload without arrays therefore fails for URL input. Use non-null arrays with the Ex overload.

Static member JSONDeserializeUDVEx<T>(obj, urlOrJson, userName, password, headers, parameters, error)

Deserializes JSON text or attempts to retrieve and deserialize JSON from a URL.

ParameterTypeDescription
TThe type of the value to serialize or deserialize.
obj outTReceives the deserialized value; initialized to default(T).
urlOrJsonSalStringJSON text, or an absolute URL from which to request JSON with HTTP GET.
userNameSalStringThe optional Basic-authentication user name.
passwordSalStringThe Basic-authentication password.
headersSalArray<SalString>Two-dimensional request-header name/value entries. For URL input, pass a non-null array, even when empty.
parametersSalArray<SalString>Two-dimensional query name/value entries. For URL input, pass a non-null array, even when empty.
error outSalStringReceives an exception message on failure; initially empty.

Returns: SalBoolean. True if processing completes without an exception; false for empty input or a caught exception.

An empty response leaves the result at default(T). The URL path dereferences null header and parameter arrays; the overload without arrays therefore fails for URL input. Use non-null arrays with the Ex overload.

Static member JSONSerializeUDV<T>(obj, url, httpVerb, result, userName, password, error)

Serializes a value to JSON and optionally sends it in an HTTP request.

ParameterTypeDescription
TThe type of the value to serialize or deserialize.
objTThe value to serialize; null causes failure.
urlSalStringAn endpoint URL, or an empty/null SAL string to return JSON without sending a request.
httpVerbSalNumberThe HTTP method: HTTP_GET, HTTP_PUT, HTTP_POST, or HTTP_DELETE.
result outSalStringReceives serialized JSON or the HTTP response body; initially SalString.Null.
userNameSalStringThe optional Basic-authentication user name.
passwordSalStringThe Basic-authentication password.
error outSalStringReceives an exception message on failure; initially empty.

Returns: SalBoolean. True on successful serialization or HTTP response; false for a null object or a caught exception.

HTTP execution is synchronous. A supplied URL receives the JSON as the request body, including for GET and DELETE. HTTP failures are reported through the error argument.

Static member JSONSerializeUDVEx<T>(obj, url, httpVerb, result, userName, password, headers, parameters, error)

Serializes a value to JSON and optionally sends it in an HTTP request.

ParameterTypeDescription
TThe type of the value to serialize or deserialize.
objTThe value to serialize; null causes failure.
urlSalStringAn endpoint URL, or an empty/null SAL string to return JSON without sending a request.
httpVerbSalNumberThe HTTP method: HTTP_GET, HTTP_PUT, HTTP_POST, or HTTP_DELETE.
result outSalStringReceives serialized JSON or the HTTP response body; initially SalString.Null.
userNameSalStringThe optional Basic-authentication user name.
passwordSalStringThe Basic-authentication password.
headersSalArrayOptional two-dimensional name/value entries added to request headers.
parametersSalArrayOptional two-dimensional name/value entries used to replace the URL query.
error outSalStringReceives an exception message on failure; initially empty.

Returns: SalBoolean. True on successful serialization or HTTP response; false for a null object or a caught exception.

HTTP execution is synchronous. A supplied URL receives the JSON as the request body, including for GET and DELETE. HTTP failures are reported through the error argument.

Static member ListAdd(ctrl, text)

ParameterTypeDescription
ctrlControl
textSalString

Returns: SalNumber.

Static member ListClear(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member ListDelete(ctrl, index)

ParameterTypeDescription
ctrlControl
indexSalNumber

Returns: SalNumber.

Static member ListFiles(ctrl, ctrlPath, pathName, attributes)

ParameterTypeDescription
ctrlControl
ctrlPathControl
pathName by referenceSalString
attributesSalNumber

Returns: SalBoolean.

Static member ListGetMultiSelect(ctrl, selectedArray)

ParameterTypeDescription
ctrlControl
selectedArraySalArray<SalNumber>

Returns: SalBoolean.

Static member ListInsert(ctrl, index, text)

ParameterTypeDescription
ctrlControl
indexSalNumber
textSalString

Returns: SalNumber.

Static member ListPopulate(ctrl, sql, select)

ParameterTypeDescription
ctrlControl
sqlSalSqlHandle
selectSalString

Returns: SalBoolean.

Static member ListPopulate(ctrl, sql, select, errorHandler)

ParameterTypeDescription
ctrlControl
sqlSalSqlHandle
selectSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member ListQueryCount(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member ListQueryFile(ctrl, fileName)

ParameterTypeDescription
ctrlControl
fileName by referenceSalString

Returns: SalBoolean.

Static member ListQueryMultiCount(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member ListQuerySelection(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalNumber.

Static member ListQueryState(ctrl, index)

ParameterTypeDescription
ctrlControl
indexSalNumber

Returns: SalBoolean.

Static member ListQueryText(ctrl, index, text)

ParameterTypeDescription
ctrlControl
indexSalNumber
text by referenceSalString

Returns: SalNumber.

Static member ListQueryTextLength(ctrl, index)

ParameterTypeDescription
ctrlControl
indexSalNumber

Returns: SalNumber.

Static member ListQueryTextX(ctrl, index)

ParameterTypeDescription
ctrlControl
indexSalNumber

Returns: SalString.

Static member ListRedraw(ctrl, redraw)

ParameterTypeDescription
ctrlControlThe target control.
redrawSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Static member ListSelectString(ctrl, startIndex, text)

ParameterTypeDescription
ctrlControl
startIndexSalNumber
textSalString

Returns: SalNumber.

Static member ListSetMultiSelect(ctrl, index, select)

ParameterTypeDescription
ctrlControl
indexSalNumber
selectSalBoolean

Returns: SalBoolean.

Static member ListSetSelect(ctrl, index)

ParameterTypeDescription
ctrlControl
indexSalNumber

Returns: SalBoolean.

Static member ListSetTabs(ctrl, tabStops)

ParameterTypeDescription
ctrlControl
tabStopsSalArray<SalNumber>

Returns: SalBoolean.

Static member LoadApp(name, parameters)

ParameterTypeDescription
nameSalString
parametersSalString

Returns: SalBoolean.

Static member LoadAppAndProcessMsgs(name, mode, retCode)

ParameterTypeDescription
nameSalString
modeSalNumber
retCode by referenceSalNumber

Returns: SalBoolean.

Static member LoadAppAndWait(name, mode, retCode)

ParameterTypeDescription
nameSalString
modeSalNumber
retCode by referenceSalNumber

Returns: SalBoolean.

Static member Log(fileName, message)

Appends text to a log file.

ParameterTypeDescription
fileNameSalStringThe destination path.
messageSalStringThe text to append without adding a newline.

Returns: SalBoolean. True if the write succeeds; false if a caught exception is logged.

Static member LogLine(fileName, message)

Invokes Log with a line terminator appended to the file name.

ParameterTypeDescription
fileNameSalStringThe destination path to which CRLF is appended by this implementation.
messageSalStringThe text passed unchanged to Log.

Returns: SalBoolean. The result of Log.

This implementation adds CRLF to the file-name argument, not to the message. It can therefore fail to open the file.

Static member LogResource(fileName)

Deprecated memberDeprecated: Use Sal.Log(). Retains the LogResource operation as a compatibility stub.

ParameterTypeDescription
fileNameSalStringIgnored; no operation is performed.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member MapEnterToTab(state)

Sets whether Enter behaves as Tab for SAL controls.

ParameterTypeDescription
stateSalBooleanTrue to enable the mapping; false to disable it.

Returns: SalBoolean. The newly assigned setting.

Static member MDIArrangeIcons(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member MDICascade(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member MDITile(ctrl, position)

ParameterTypeDescription
ctrlControl
positionSalBoolean

Returns: SalBoolean.

Static member MessageBeep(alertLevel)

ParameterTypeDescription
alertLevelSalNumber

Returns: SalBoolean.

Static member MessageBox(text)

Displays a message box using SAL options.

ParameterTypeDescription
textSalStringThe message text.

Returns: SalNumber. The ID constant corresponding to the selected button.

Uses an empty title and the default OK button.

Static member MessageBox(text, title, flags)

Displays a message box using SAL options.

ParameterTypeDescription
textSalStringThe message text.
titleSalStringThe message-box title.
flagsSalNumberCombined MB_ button, icon, and default-button options.

Returns: SalNumber. The ID constant corresponding to the selected button.

Static member MessageBox(owner, text, title, flags)

ParameterTypeDescription
ownerControl
textSalString
titleSalString
flagsSalNumber

Returns: SalNumber.

Static member ModalDialog(dialogType, owner, parameters)

ParameterTypeDescription
dialogTypeType
ownerControl
parametersObject[]

Returns: SalNumber.

Example:

Use an explicit dialog return value to distinguish acceptance from closing the dialog.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class ConfirmationDialog : SalDialogBox
{
public ConfirmationDialog(SalString prompt)
{
Text = prompt;
var accept = new Button { Text = "OK" };
accept.Click += (sender, e) => Sal.EndDialog(this, 1);
Controls.Add(accept);
}
}

public static class DialogExample
{
public static bool Confirm(Control owner)
{
SalNumber result = Sal.ModalDialog(typeof(ConfirmationDialog), owner, (SalString)"Confirm changes");
return result == 1;
}
}

Static member ModalDialog(dialogName, owner, parameters)

Creates and displays a modal SAL dialog.

ParameterTypeDescription
dialogNameSalStringThe dialog type name resolved using the calling assembly.
ownerControlThe dialog owner.
parametersObject[]Arguments passed through the dialog creation path.

Returns: SalNumber. The dialog's SAL return value.

Example:

Use an explicit dialog return value to distinguish acceptance from closing the dialog.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class ConfirmationDialog : SalDialogBox
{
public ConfirmationDialog(SalString prompt)
{
Text = prompt;
var accept = new Button { Text = "OK" };
accept.Click += (sender, e) => Sal.EndDialog(this, 1);
Controls.Add(accept);
}
}

public static class DialogExample
{
public static bool Confirm(Control owner)
{
SalNumber result = Sal.ModalDialog((SalString)typeof(ConfirmationDialog).FullName, owner, (SalString)"Confirm changes");
return result == 1;
}
}

Static member ModalDialog(dialogName, owner)

Creates and displays a modal SAL dialog.

ParameterTypeDescription
dialogNameSalStringThe dialog type name resolved using the calling assembly.
ownerControlThe dialog owner.

Returns: SalNumber. The dialog's SAL return value.

Example:

Use an explicit dialog return value to distinguish acceptance from closing the dialog.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class ConfirmationDialog : SalDialogBox
{
public ConfirmationDialog()
{
Text = "Confirm changes";
var accept = new Button { Text = "OK" };
accept.Click += (sender, e) => Sal.EndDialog(this, 1);
Controls.Add(accept);
}
}

public static class DialogExample
{
public static bool Confirm(Control owner)
{
SalNumber result = Sal.ModalDialog((SalString)typeof(ConfirmationDialog).FullName, owner);
return result == 1;
}
}

Static member ModalDialogFromStr(dialogName, owner)

Creates and displays a modal SAL dialog.

ParameterTypeDescription
dialogNameSalStringThe dialog type name resolved using the calling assembly.
ownerControlThe dialog owner.

Returns: SalNumber. The dialog's SAL return value.

Static member MoveWindow(ctrl, xOffset, yOffset)

Moves a control by offsets expressed in form units.

ParameterTypeDescription
ctrlControlThe target control.
xOffsetSalNumberThe horizontal offset.
yOffsetSalNumberThe vertical offset.

Returns: SalBoolean. The result of SalWindow.Move.

Static member MTSCreateInstance(obj)

Retains the MTSCreateInstance operation as a compatibility stub.

ParameterTypeDescription
obj by referenceObjectIgnored; no operation is performed.

Returns: SalBoolean. False.

Reference arguments, if any, are left unchanged.

Static member MTSDisableCommit()

Disables transaction commit in the current COM+ context.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

Static member MTSEnableCommit()

Enables transaction commit in the current COM+ context.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

Static member MTSGetObjectContext(obj, context)

Deprecated memberDeprecated: Not supported. Retains the MTSGetObjectContext operation as a compatibility stub.

ParameterTypeDescription
objObjectIgnored; no operation is performed.
context by referenceSalNumberIgnored; no operation is performed.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member MTSIsCallerInRole(role, inRole)

Queries whether the caller belongs to a COM+ role.

ParameterTypeDescription
roleSalStringThe role name.
inRole by referenceSalBooleanReceives the queried state on success; unchanged after a caught COMException.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

Static member MTSIsInTransaction(isInTransaction)

Queries whether the COM+ context belongs to a transaction.

ParameterTypeDescription
isInTransaction by referenceSalBooleanReceives the queried state on success; unchanged after a caught COMException.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

Static member MTSIsSecurityEnabled(isSecurityEnabled)

Queries COM+ security and discards the returned state.

ParameterTypeDescription
isSecurityEnabled by referenceSalBooleanLeft unchanged; this implementation discards the queried value.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

Static member MTSSetAbort()

Marks the current COM+ work as aborted.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

Static member MTSSetComplete()

Marks the current COM+ work as complete.

Returns: SalBoolean. True if the call completes; false if a COMException is caught and logged.

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
groupIndexSalNumber
groupTitleSalString
heightSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
nameSalString
expandedImageSalString
collapsedImageSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
groupIndexSalNumber
childControl

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
childControl

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
enableSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
groupIndexSalNumber
expandSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.

Returns: SalNumber. For an incompatible control, -1; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
binary by referenceSalBinary
formatSalNumber
expandedSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
nameSalString

Returns: SalNumber. For an incompatible control, -1; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
title by referenceSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber

Returns: SalString. For an incompatible control, SalString.Null; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
groupIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
xmlSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
groupIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
xml by referenceSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
binarySalBinary
formatSalNumber
expandedSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

ParameterTypeDescription
controlControlThe control resolved as SalNavigationBar value on which to perform the operation.
paneIndexSalNumber
titleSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member NumberAbs(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberArcCos(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberArcSin(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberArcTan(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberArcTan2(numY, numX)

ParameterTypeDescription
numYSalNumber
numXSalNumber

Returns: SalNumber.

Static member NumberCos(angle)

ParameterTypeDescription
angleSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberCosH(angle)

ParameterTypeDescription
angleSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberExponent(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberHigh(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberHypot(x, y)

ParameterTypeDescription
xSalNumber
ySalNumber

Returns: SalNumber.

Static member NumberLog(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberLogBase10(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberLow(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberMax(num1, num2)

ParameterTypeDescription
num1SalNumber
num2SalNumber

Returns: SalNumber.

Static member NumberMin(num1, num2)

ParameterTypeDescription
num1SalNumber
num2SalNumber

Returns: SalNumber.

Static member NumberMod(num, mod)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.
modSalNumber

Returns: SalNumber.

Static member NumberPi(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberPower(num, exponent)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.
exponentSalNumber

Returns: SalNumber.

Static member NumberRandInit(seed)

ParameterTypeDescription
seedSalNumber

Returns: SalBoolean.

Static member NumberRandom()

Returns: SalNumber.

Static member NumberRound(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberSin(angle)

ParameterTypeDescription
angleSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberSinH(angle)

ParameterTypeDescription
angleSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberSqrt(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberTan(angle)

ParameterTypeDescription
angleSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberTanH(angle)

ParameterTypeDescription
angleSalNumberThe SalNumber value on which to perform the operation.

Returns: SalNumber.

Static member NumberToChar(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalString.

Static member NumberToHString(handle)

Resolves a registered SAL string handle.

ParameterTypeDescription
handleSalNumberThe numeric string handle.

Returns: SalString. The string returned by SalString.FromHandle.

Static member NumberToStr(num, decimalPlaces, str)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.
decimalPlacesSalNumber
str by referenceSalString

Returns: SalNumber.

Static member NumberToStrX(num, decimalPlaces)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.
decimalPlacesSalNumber

Returns: SalString.

Static member NumberToWindowHandle(num)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.

Returns: SalWindowHandle.

Static member NumberTruncate(num, precision, scale)

ParameterTypeDescription
numSalNumberThe SalNumber value on which to perform the operation.
precisionSalNumber
scaleSalNumber

Returns: SalNumber.

Static member ObjCreateFromString(className)

Creates a migrated functional-class instance by name.

ParameterTypeDescription
classNameSalStringThe class name resolved using the calling assembly.

Returns: SalFunctionalClass. The result of SalFunctionalClass.CreateFromString.

Static member ObjGetType(userObject)

Returns the SAL type name of a functional-class instance.

ParameterTypeDescription
userObjectSalFunctionalClassThe instance to inspect.

Returns: SalString. The GetTypeName result, or an empty SAL string for a null reference.

Static member ObjIsDerived(userObject, className)

Tests whether a functional-class instance derives from a named class.

ParameterTypeDescription
userObjectSalFunctionalClassThe instance to inspect.
classNameSalStringThe base-class name resolved using the calling assembly.

Returns: SalBoolean. False for a null instance; otherwise, the IsDerivedFrom result.

Static member ObjIsNull(userObject)

Tests whether a migrated functional-class reference is null.

ParameterTypeDescription
userObjectSalFunctionalClassThe object reference to test.

Returns: SalBoolean. True if the reference is null; otherwise, false.

Static member ObjIsValidClasname(className)

Checks whether a name resolves to a valid functional class.

ParameterTypeDescription
classNameSalStringThe class name resolved using the calling assembly.

Returns: SalBoolean. The result of SalFunctionalClass.IsValidClassName.

Static member ParentWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalWindowHandle.

Static member Pause(milliseconds)

Suspends the calling thread for the requested interval.

ParameterTypeDescription
millisecondsSalNumberThe sleep duration in milliseconds, converted to an integer; -1 waits indefinitely.

Returns: SalBoolean. True after the operation completes.

Static member PicClear(ctrl)

Clears the image assigned to the associated control.

ParameterTypeDescription
ctrlControlThe target control.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Static member PicGetDescription(ctrl, description, maxLen)

Retrieves the Gupta image-format description.

ParameterTypeDescription
ctrlControlThe target control.
description by referenceSalStringReceives the description, or an empty string if no image is available.
maxLenSalNumberThe maximum number of characters to copy.

Returns: SalNumber. The number of characters copied.

Static member PicGetImage(ctrl, buffer, type)

Encodes the current image as binary data and reports its format.

ParameterTypeDescription
ctrlControlThe target control.
buffer by referenceSalStringReceives the image data, or a null-valued buffer when no image is available.
type by referenceSalNumberReceives the image-type code.

Returns: SalNumber. The byte count, or zero when no image data is available.

Static member PicGetImage(ctrl, buffer, type)

Encodes the current image as binary data and reports its format.

ParameterTypeDescription
ctrlControlThe target control.
buffer by referenceSalBinaryReceives the image data, or a null-valued buffer when no image is available.
type by referenceSalNumberReceives the image-type code.

Returns: SalNumber. The byte count, or zero when no image data is available.

Static member PicGetString(ctrl, format, buffer)

Encodes the current image in a requested SAL image representation.

ParameterTypeDescription
ctrlControlThe target control.
formatSalNumberThe PIC_Format* encoding selector.
buffer by referenceSalStringReceives the encoded image data.

Returns: SalNumber. The number of encoded bytes.

The object format includes a Gupta header and requires an available image. Other formats can return an empty blob when no image is available.

Static member PicGetString(ctrl, format, buffer)

Encodes the current image in a requested SAL image representation.

ParameterTypeDescription
ctrlControlThe target control.
formatSalNumberThe PIC_Format* encoding selector.
buffer by referenceSalBinaryReceives the encoded image data.

Returns: SalNumber. The number of encoded bytes.

The binary overload returns raw encoded bytes.

Static member PicSet(ctrl, resourceType, format)

Loads an image from a SAL resource and assigns it to the control.

ParameterTypeDescription
ctrlControlThe target control.
resourceTypeSalResourceThe image resource to load.
formatSalNumberThe image-format selector passed to the picture implementation.

Returns: SalBoolean. True if the image can be assigned to the control; otherwise, false.

Static member PicSetFile(ctrl, fileName)

Loads and assigns an image from a file.

ParameterTypeDescription
ctrlControlThe target control.
fileNameSalStringThe file path, or an empty value to clear the image.

Returns: SalBoolean. True if assignment succeeds; false if the control does not support images or a file I/O error is caught.

Static member PicSetFit(ctrl, fit, scaleWidth, scaleHeight)

Sets how a picture is fitted within its control.

ParameterTypeDescription
ctrlControlThe target control.
fitSalNumberThe PIC_Fit* fitting mode.
scaleWidthSalNumberThe width scaling percentage used for PIC_FitScale.
scaleHeightSalNumberThe height scaling percentage used for PIC_FitScale.

Returns: SalBoolean. True for a supported picture control; otherwise, false.

Best-fit and size-to-fit modes reset the scaling percentages to 100.

Static member PicSetHandle(ctrl, type, handle)

Assigns an image identified by a native icon or bitmap handle.

ParameterTypeDescription
ctrlControlThe target control.
typeSalNumberThe native handle, or zero to clear the image.
handleSalNumberPIC_FormatIcon for an icon; other values use the bitmap path.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Static member PicSetImage(ctrl, buffer, type)

Decodes image bytes and assigns the resulting image.

ParameterTypeDescription
ctrlControlThe target control.
bufferSalStringThe encoded image data.
typeSalNumberThe SAL image-format code passed to the decoder.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Static member PicSetString(ctrl, format, buffer)

Decodes image bytes and assigns the resulting image.

ParameterTypeDescription
ctrlControlThe target control.
formatSalNumberThe SAL image-format code passed to the decoder.
bufferSalStringThe encoded image data.

Returns: SalBoolean. True if the control supports image assignment; otherwise, false.

Static member PicSetString(ctrl, format, buffer)

Loads a picture from a binary image buffer.

ParameterTypeDescription
ctrlControlThe target control.
formatSalNumberThe image format identifier.
bufferSalBinaryThe encoded image bytes.

Returns: SalBoolean. The result of SalPicture.SetImageString.

Static member PixelsToFormUnits(ctrl, numPixels, vertical)

ParameterTypeDescription
ctrlControl
numPixelsSalNumber
verticalSalBoolean

Returns: SalNumber.

Static member PostMsg(ctrl, msg, wParam, lParam)

ParameterTypeDescription
ctrlControlThe target control.
msgSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalBoolean.

Applies the referenced operation to the control represented by this handle.

Example:

Queue a custom action for later dispatch; the return value reports posting success, not the handler result.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class MessageWindow : SalFormWindow
{
private const int RefreshCaption = Sys.SAM_User + 1;

public MessageWindow()
{
WindowActions += (sender, e) =>
{
if (e.ActionType == RefreshCaption)
{
Text = "Refreshed";
e.Return = 1;
}
};
}

public SalBoolean RequestRefresh()
{
// Call on a live window from the UI thread.
return Sal.PostMsg(this, RefreshCaption, 0, 0);
}
}

Static member PrtExtractRect(lParam, left, top, right, bottom)

Extracts the rectangle carried by a print-message GCHandle.

ParameterTypeDescription
lParamSalNumberA GCHandle identifier whose target is a boxed Rectangle.
left by referenceSalNumberReceives the left edge.
top by referenceSalNumberReceives the top edge.
right by referenceSalNumberReceives the right edge.
bottom by referenceSalNumberReceives the bottom edge.

Returns: SalBoolean. False for a zero handle; true after extracting the rectangle.

Nonzero handles must be valid GCHandles with Rectangle targets. The method does not release the handle.

Static member PrtGetDefault(device, driver, port)

Retrieves the default printer name.

ParameterTypeDescription
device by referenceSalStringReceives the system default printer name.
driver by referenceSalStringReceives the same printer name, rather than a driver identifier.
port by referenceSalStringIgnored and left unchanged.

Returns: SalBoolean. True if the Windows default-printer lookup succeeds; otherwise, false.

Static member PrtGetParmNum(parm, value)

Reads a supported numeric print setting.

ParameterTypeDescription
parmSalNumberThe PRT_n parameter identifier.
value by referenceSalNumberReceives the setting; unchanged for an unsupported parameter.

Returns: SalBoolean. True for a recognized parameter; otherwise, false.

Margin values are divided by 100 using integer arithmetic, so fractional inches are discarded.

Static member PrtPreviewForm(ctrl)

Previews a form through the SAL printing service.

ParameterTypeDescription
ctrlControlThe form to process.

Returns: SalBoolean. False for a null/non-form control or a caught exception; otherwise, true.

Static member PrtPrintForm(ctrl)

Prints a form through the SAL printing service.

ParameterTypeDescription
ctrlControlThe form to process.

Returns: SalBoolean. False for a null/non-form control or a caught exception; otherwise, true.

Static member PrtSetDefault(device, driver, port)

Sets the Windows default printer.

ParameterTypeDescription
deviceSalStringThe printer name.
driverSalStringIgnored.
portSalStringIgnored.

Returns: SalBoolean. True if the Windows operation succeeds; otherwise, false.

Static member PrtSetParmDefaults()

Resets cached printer settings and disables the printed form border.

Returns: SalBoolean. True.

Static member PrtSetParmNum(parm, value)

Changes a supported numeric print setting.

ParameterTypeDescription
parmSalNumberThe PRT_n parameter identifier.
valueSalNumberThe new setting; margins are specified in inches.

Returns: SalBoolean. True for a recognized parameter; otherwise, false.

Margin values are multiplied by 100. Print-all sets both page limits to zero; clearing it sets only the first page to one. Draft selection takes the first matching draft or medium resolution encountered.

Static member PrtSetup(device, driver, port, activeOnly)

Displays printer setup and makes the accepted printer the Windows default.

ParameterTypeDescription
device by referenceSalStringReceives the accepted default printer name.
driver by referenceSalStringReceives the same printer name.
port by referenceSalStringIgnored and left unchanged.
activeOnlySalBooleanIgnored; does not limit printer selection.

Returns: SalBoolean. True if acceptance, default-printer assignment, and name retrieval all succeed; otherwise, false.

Static member QueryFieldEdit(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member Quit()

Signals an application-quit request by throwing QuitException.

Returns: SalBoolean. This method does not return.

Static member RegexReplaceAll(strInput, nStart, nEnd, strRegex, result)

Removes every regular-expression match within a character range.

ParameterTypeDescription
strInputSalStringThe input text; null is treated as empty.
nStartSalNumberThe one-based inclusive start position; values below one become one.
nEndSalNumberThe one-based inclusive end position; nonpositive or oversized values become the input length.
strRegexSalStringThe pattern whose matches are removed.
result outSalStringReceives the resulting text.

Returns: SalString. The same text assigned to result.

Text outside the range is preserved. An empty pattern, reversed range, or caught exception returns the original input.

Static member ReportClose(windowReport)

Closes the preview associated with a report window.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.

Returns: SalBoolean. True if the report was found and the close command was dispatched; otherwise, false.

Static member ReportCmd(windowReport, command)

Dispatches a preview command to a report window.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
commandSalNumberThe preview command code understood by the reporting engine.

Returns: SalBoolean. True if the report was found and the command was dispatched; otherwise, false.

Static member ReportCreate(fileName, variableNames, inputs, defaultReport, error)

Creates a report file from the supplied variable and input definitions.

ParameterTypeDescription
fileNameSalStringThe destination report file path; its extension also selects the reporting engine when no type override is configured.
variableNamesSalStringThe comma-separated application variable expressions supplying report data.
inputsSalStringThe corresponding comma-separated report input names, with matching order and data types.
defaultReportSalBooleanReserved for compatibility; this argument is ignored.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalBoolean. True when the engine returns error code zero; false if a report cannot be created.

The optional template initializes the engine report. Overloads without a template pass an empty template name.

Static member ReportCreate(fileName, variableNames, inputs, defaultReport, error, template)

Creates a report file from the supplied variable and input definitions.

ParameterTypeDescription
fileNameSalStringThe destination report file path; its extension also selects the reporting engine when no type override is configured.
variableNamesSalStringThe comma-separated application variable expressions supplying report data.
inputsSalStringThe corresponding comma-separated report input names, with matching order and data types.
defaultReportSalBooleanReserved for compatibility; this argument is ignored.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.
templateSalStringThe source report template path.

Returns: SalBoolean. True when the engine returns error code zero; false if a report cannot be created.

The optional template initializes the engine report. Overloads without a template pass an empty template name.

Static member ReportDlgOptions(windowReport, caption, line1, line2, docName)

Sets the report progress caption, two-line status text, and print document name.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
captionSalStringThe progress dialog caption.
line1SalStringThe first progress message line.
line2SalStringThe second progress message line.
docNameSalStringThe document name used for printing.

Returns: SalBoolean. True if the report was found; otherwise, false.

Static member ReportGetDateTimeVar(windowReport, variableName, value)

Reads a report variable and converts it to a SAL date/time.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
value by referenceSalDateTimeReceives the report variable value when retrieval succeeds; remains unchanged when the report or variable is absent.

Returns: SalBoolean. True if the report and variable were found and conversion completed; otherwise, false.

Static member ReportGetNumberVar(windowReport, variableName, value)

Reads a report variable and converts it to a SAL number.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
value by referenceSalNumberReceives the report variable value when retrieval succeeds; remains unchanged when the report or variable is absent.

Returns: SalBoolean. True if the report and variable were found and conversion completed; otherwise, false.

Static member ReportGetObjectVar(windowReport, variableName, value)

Reads a report byte-array variable into a binary SAL string.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
value by referenceSalStringReceives the report variable value when retrieval succeeds; remains unchanged when the report or variable is absent.

Returns: SalBoolean. True if a byte-array value was retrieved; otherwise, false.

A non-null variable of another type clears the output to SalString.Null and returns false.

Static member ReportGetPrinterSettings(windowReport, printerName, orientation, paperType, width, height)

Reads the printer, orientation, and paper settings of a report.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
printerName by referenceSalStringReceives the current printer name.
orientation by referenceSalNumberReceives Sys.RPT_Landscape or Sys.RPT_Portrait.
paperType by referenceSalNumberReceives the paper kind, with custom paper represented by Sys.RPT_PaperCustom.
width by referenceSalNumberReceives the paper width in hundredths of an inch.
height by referenceSalNumberReceives the paper height in hundredths of an inch.

Returns: SalBoolean. True if the report was found and the outputs were assigned; otherwise, false.

Read settings after report initialization. Width and height are returned in hundredths of an inch, although ReportSetPrinterSettings accepts thousandths of an inch.

Static member ReportGetStringVar(windowReport, variableName, value)

Reads a report variable and converts it to a SAL string.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
value by referenceSalStringReceives the report variable value when retrieval succeeds; remains unchanged when the report or variable is absent.

Returns: SalBoolean. True if the report and variable were found and conversion completed; otherwise, false.

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

Creates and prints a report using the selected reporting engine.

ParameterTypeDescription
ownerControlThe application control that owns the report and handles report messages.
templateSalStringThe source report template path.
variableNamesSalStringThe comma-separated application variable expressions supplying report data.
inputsSalStringThe corresponding comma-separated report input names, with matching order and data types.
copiesSalNumberThe requested number of printed copies.
optionsSalNumberThe Sys.RPT_Print* flags passed to the reporting engine.
firstPageSalNumberThe first page of the requested print or export range.
lastPageSalNumberThe last page of the requested print or export range.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalWindowHandle. Always a null handle. Inspect the error output to determine the printing or export result.

The owner receives the report data and lifecycle messages supported by the engine.

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

Creates and exports a report to a file.

ParameterTypeDescription
ownerControlThe application control that owns the report and handles report messages.
templateSalStringThe source report template path.
destFileSalStringThe destination path whose extension selects the export format.
variableNamesSalStringThe comma-separated application variable expressions supplying report data.
inputsSalStringThe corresponding comma-separated report input names, with matching order and data types.
copiesSalNumberReserved for compatibility; this argument is ignored.
optionsSalNumberThe Sys.RPT_Print* flags passed to the reporting engine.
firstPageSalNumberThe first page of the requested print or export range.
lastPageSalNumberThe last page of the requested print or export range.
rtfFormatSalBooleanReserved for compatibility; this argument is ignored.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalWindowHandle. Always a null handle. Inspect the error output to determine the printing or export result.

The destination extension determines the export format; supported formats depend on the reporting engine.

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

Creates and exports a report to a file.

ParameterTypeDescription
ownerControlThe application control that owns the report and handles report messages.
templateSalStringThe source report template path.
destFileSalStringThe destination path whose extension selects the export format.
variableNamesSalStringThe comma-separated application variable expressions supplying report data.
inputsSalStringThe corresponding comma-separated report input names, with matching order and data types.
optionsSalNumberThe Sys.RPT_Print* flags passed to the reporting engine.
firstPageSalNumberThe first page of the requested print or export range.
lastPageSalNumberThe last page of the requested print or export range.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalWindowHandle. Always a null handle. Inspect the error output to determine the printing or export result.

The destination extension determines the export format; supported formats depend on the reporting engine.

Static member ReportReset(windowReport)

Resets the report through its reporting engine.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.

Returns: SalBoolean. True if the report was found and reset was requested; otherwise, false.

Static member ReportSetDateTimeVar(windowReport, variableName, value)

Assigns a SAL date/time to a report variable.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
valueSalDateTimeThe value to assign to the report variable.

Returns: SalBoolean. The reporting engine's assignment result, or false if no report was found.

Static member ReportSetNumberVar(windowReport, variableName, value)

Assigns a SAL number to a report variable.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
valueSalNumberThe value to assign to the report variable.

Returns: SalBoolean. The reporting engine's assignment result, or false if no report was found.

Static member ReportSetObjectVar(windowReport, variableName, value)

Assigns the binary contents of a SAL string to a report variable.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
valueSalStringThe value to assign to the report variable.

Returns: SalBoolean. The reporting engine's assignment result, or false if no report was found.

Static member ReportSetPrinterSettings(windowReport, printerName, orientation, paperType, width, height)

Changes the printer, orientation, and paper settings of a report.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
printerNameSalStringThe printer name, or an empty value to retain the current printer.
orientationSalNumberSys.RPT_Landscape for landscape; any other value selects portrait.
paperTypeSalNumberThe paper kind; values greater than zero update the paper size using the low byte of this value.
widthSalNumberThe custom paper width in thousandths of an inch; ignored for predefined paper kinds.
heightSalNumberThe custom paper height in thousandths of an inch; ignored for predefined paper kinds.

Returns: SalBoolean. True if the report was found and the resulting printer is valid; otherwise, false.

Apply settings while processing SAM_ReportStart. If the resulting printer is invalid, the previous nonempty printer name is restored; other changes are not rolled back.

Static member ReportSetStringVar(windowReport, variableName, value)

Assigns a SAL string to a report variable.

ParameterTypeDescription
windowReportSalWindowHandleThe report or preview window handle.
variableNameSalStringThe name of the report variable.
valueSalStringThe value to assign to the report variable.

Returns: SalBoolean. The reporting engine's assignment result, or false if no report was found.

Static member ReportTableCreate(fileName, table, error)

Creates a report file using a table window as the data source.

ParameterTypeDescription
fileNameSalStringThe destination report file path; its extension also selects the reporting engine when no type override is configured.
tableControlThe table control used as the report data source.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalBoolean. True when the engine creates the report successfully; otherwise, false.

The document name comes from the table's top-level control title, falling back to the output filename.

Static member ReportTableCreate(fileName, table, error, template)

Creates a report file using a table window as the data source.

ParameterTypeDescription
fileNameSalStringThe destination report file path; its extension also selects the reporting engine when no type override is configured.
tableControlThe table control used as the report data source.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.
templateSalStringThe source report template path.

Returns: SalBoolean. True when the engine creates the report successfully; otherwise, false.

The document name comes from the table's top-level control title, falling back to the output filename.

Static member ReportTablePrint(table, template, paramArray, error)

Creates and prints a report whose data source is a table window.

ParameterTypeDescription
tableControlThe table control used as the report data source.
templateSalStringThe source report template path.
paramArraySalArray<SalNumber>Print settings indexed by Sys.RPT_PrintParamCopies, RPT_PrintParamFirstPage, RPT_PrintParamLastPage, and RPT_PrintParamOptions.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalWindowHandle. Always a null handle. Inspect the error output to determine the printing or export result.

Static member ReportTableView(table, parent, template, error)

Creates a preview whose report data source is a table window.

ParameterTypeDescription
tableControlThe table control used as the report data source.
parentControlThe control in which to display the preview, or null for an engine-created preview window.
templateSalStringThe source report template path.
error by referenceSalNumberReceives zero after engine success or the engine error code after failure. An initial value of 1 requests a missing-file warning during report creation; some early failures leave this value unchanged.

Returns: SalWindowHandle. The preview container handle, or a null handle if the table is invalid or report creation or preview fails.

Static member ReportView(owner, parent, template, variableNames, inputs, flags)

Creates a report preview in the requested parent control.

ParameterTypeDescription
ownerControlThe application control that owns the report and handles report messages.
parentControlThe control in which to display the preview, or null for an engine-created preview window.
templateSalStringThe source report template path.
variableNamesSalStringThe comma-separated application variable expressions supplying report data.
inputsSalStringThe corresponding comma-separated report input names, with matching order and data types.
flags by referenceSalNumberOn entry, the engine preview options. Receives zero after success or the engine error code; some early failures leave it unchanged. An initial value of 1 also requests a missing-file warning.

Returns: SalWindowHandle. The preview container handle, or a null handle if report creation or preview fails.

Static member ResolveType(asm, typeName)

Resolves a type name using the supplied assembly and loaded runtime types.

ParameterTypeDescription
asmAssemblyThe assembly to search first for a qualified name, or null.
typeNameStringThe non-null type name.

Returns: Type. The resolved Type, or null if lookup fails.

For names containing a period, tries the supplied assembly and Type.GetType before TypeManager. TypeLoadException is logged and converted to null.

Static member SalRegexMatch(strInput, strRegex, matches)

Collects regular-expression matches in a dynamic SAL array.

ParameterTypeDescription
strInputSalStringThe input text; null is treated as empty.
strRegexSalStringThe regular-expression pattern.
matchesSalArray<SalString>The non-null array to make dynamic, clear, and populate from index zero.

Returns: SalNumber. The number of matches, or zero for an empty pattern or caught matching error.

Static member SalRegexReplace(strInput, strRegex, strReplacement, result)

Replaces every regular-expression match in the input.

ParameterTypeDescription
strInputSalStringThe input text; null is treated as empty.
strRegexSalStringThe regular-expression pattern.
strReplacementSalStringThe .NET replacement expression; null is treated as empty.
result outSalStringReceives the resulting text.

Returns: SalString. The same text assigned to result.

An empty pattern or caught exception returns the original input.

Static member SalRegexSearch(strInput, nStart, strRegex, nMatchStart, nMatchLength, match)

Searches for the first regular-expression match in a suffix of the input.

ParameterTypeDescription
strInputSalStringThe input text; null is treated as empty.
nStartSalNumberThe one-based start position; values below one become one.
strRegexSalStringThe regular-expression pattern.
nMatchStart by referenceSalNumberReceives the one-based start of a match, or zero.
nMatchLength by referenceSalNumberReceives the match length, or zero.
match by referenceSalStringReceives the matched text, or SalString.Null.

Returns: SalNumber. One if a match is found; otherwise, zero.

Matching is performed against the substring beginning at the requested position, so anchors refer to that substring. Errors return zero.

Static member ScrollGetPos(ctrl, pos)

Retrieves the position of the associated scrolling control.

ParameterTypeDescription
ctrlControlThe target control.
pos by referenceSalNumberReceives the current position, or zero for a control of a different type.

Returns: SalBoolean. False for an unavailable control; otherwise, true.

Uses a Windows Forms ScrollBar.

Static member ScrollGetRange(ctrl, min, max, line, page)

ParameterTypeDescription
ctrlControl
min by referenceSalNumber
max by referenceSalNumber
line by referenceSalNumber
page by referenceSalNumber

Returns: SalBoolean.

Static member ScrollSetPos(ctrl, pos)

ParameterTypeDescription
ctrlControl
posSalNumber

Returns: SalBoolean.

Static member ScrollSetRange(ctrl, min, max, line, page)

ParameterTypeDescription
ctrlControl
minSalNumber
maxSalNumber
lineSalNumber
pageSalNumber

Returns: SalBoolean.

Static member SendClassMessage(message, wParam, lParam)

Invokes the next class-level message handler for the current SAL context.

ParameterTypeDescription
messageSalNumberThe message identifier.
wParamSalNumberThe message's wParam.
lParamSalNumberThe message's lParam.

Returns: SalNumber. The result from SalWindow.SendClassMessage.

Uses the active window-actions index when available; otherwise begins with the calling method's declaring type.

Static member SendClassMessageNamed(type, message, wParam, lParam)

Dispatches a class message beginning at a specified type.

ParameterTypeDescription
typeTypeThe class at which handler lookup begins.
messageSalNumberThe message identifier.
wParamSalNumberThe message's wParam.
lParamSalNumberThe message's lParam.

Returns: SalNumber. The result from SalWindow.SendClassMessageNamed.

Static member SendMsg(ctrl, message, wParam, lParam)

ParameterTypeDescription
ctrlControl
messageSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalNumber.

Example:

Dispatch a custom action immediately and read the value returned by its handler.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public class MessageWindow : SalFormWindow
{
private const int QueryCount = Sys.SAM_User + 1;

public MessageWindow()
{
WindowActions += (sender, e) =>
{
if (e.ActionType == QueryCount)
{
e.Return = 42;
}
};
}

public SalNumber ReadCount()
{
// Call on a live window from the UI thread.
return Sal.SendMsg(this, QueryCount, 0, 0);
}
}

Static member SendMsgToChildren(ctrl, message, wParam, lParam)

ParameterTypeDescription
ctrlControl
messageSalNumber
wParamSalNumber
lParamSalNumber

Returns: SalBoolean.

Static member SendValidateMsg()

Returns: SalNumber.

Static member SetBufferLength(buffer, length)

ParameterTypeDescription
buffer by referenceSalBinary
lengthSalNumber

Returns: SalBoolean.

Static member SetBufferLength(str, length)

ParameterTypeDescription
str by referenceSalString
lengthSalNumber

Returns: SalBoolean.

Static member SetButtonChecked(ctrl, value)

ParameterTypeDescription
ctrlControl
valueSalNumber

Returns: SalBoolean.

Static member SetDefButton(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member SetErrorInfo(code, desc, helpfileName, helpContext)

Throws a COMException containing SAL error information.

ParameterTypeDescription
codeSalNumberThe HRESULT, converted to a 32-bit integer.
descSalStringThe exception message.
helpfileNameSalStringThe help file or URL.
helpContextSalNumberThe help context appended as a fragment identifier.

Returns: SalBoolean. This method does not return.

Static member SetFieldEdit(ctrl, set)

ParameterTypeDescription
ctrlControl
setSalBoolean

Returns: SalBoolean.

Static member SetFocus(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalWindowHandle.

Static member SetHintText(ctrl, text)

ParameterTypeDescription
ctrlControl
textSalString

Returns: SalBoolean.

Static member SetMaxDataLength(ctrl, length)

ParameterTypeDescription
ctrlControl
lengthSalNumber

Returns: SalBoolean.

Static member SetProfileString(section, entry, value, fileName)

ParameterTypeDescription
sectionSalString
entrySalString
valueSalString
fileNameSalString

Returns: SalBoolean.

Static member SetWindowLabelText(ctrl, text)

ParameterTypeDescription
ctrlControl
textSalString

Returns: SalBoolean.

Static member SetWindowLoc(ctrl, x, y)

Sets a control's location in form units.

ParameterTypeDescription
ctrlControlThe target control.
xSalNumberThe horizontal coordinate.
ySalNumberThe vertical coordinate.

Returns: SalBoolean. The result of SalWindow.SetLocation.

Static member SetWindowSize(ctrl, width, height)

Sets a control's size in form units.

ParameterTypeDescription
ctrlControlThe target control.
widthSalNumberThe requested width.
heightSalNumberThe requested height.

Returns: SalBoolean. The result of SalWindow.SetSize.

Static member SetWindowText(ctrl, text)

ParameterTypeDescription
ctrlControl
textSalString

Returns: SalBoolean.

Static member ShowWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member ShowWindowAndLabel(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member StartTrace(outputType, traceFile, clearExisting)

ParameterTypeDescription
outputTypeSalNumber
traceFileSalString
clearExistingSalBoolean

Returns: SalBoolean.

Static member StaticFirst(form)

Finds the first static child control.

ParameterTypeDescription
formControlThe parent to search.

Returns: SalNumber. The numeric handle of the first label, group box, frame, or line; zero if none is found.

Static member StaticGetLabel(ctrl)

Finds the label associated with a control.

ParameterTypeDescription
ctrlControlThe target control.

Returns: SalNumber. The label's numeric handle, or zero if none is found.

Static member StaticGetLoc(form, handle, x, y)

Reads a static control's location in pixels.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.
x by referenceSalNumberReceives the horizontal position in pixels.
y by referenceSalNumberReceives the vertical position in pixels.

Returns: SalBoolean. True if the control is resolved and the operation completes; otherwise, false.

Static member StaticGetSize(form, handle, width, height)

Reads a static control's size in pixels.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.
width by referenceSalNumberReceives the width in pixels.
height by referenceSalNumberReceives the height in pixels.

Returns: SalBoolean. True if the control is resolved and the operation completes; otherwise, false.

Static member StaticHide(form, handle)

Hides a static control.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.

Returns: SalBoolean. True if the control is resolved and the operation completes; otherwise, false.

Static member StaticIsVisible(form, handle)

Tests whether a static control is visible.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.

Returns: SalBoolean. True if the control exists and is visible; otherwise, false.

Static member StaticNext(form, handle)

Finds the next static sibling control.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe current control's numeric handle.

Returns: SalNumber. The next label, group box, frame, or line handle; zero if the current or next control is unavailable.

Static member StaticSetLoc(form, handle, x, y)

Sets a static control's location in pixels.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.
xSalNumberThe horizontal position in pixels.
ySalNumberThe vertical position in pixels.

Returns: SalBoolean. True if the control is resolved and the operation completes; otherwise, false.

Static member StaticSetSize(form, handle, width, height)

Sets a static control's size in pixels.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.
widthSalNumberThe width in pixels.
heightSalNumberThe height in pixels.

Returns: SalBoolean. True if the control is resolved and the operation completes; otherwise, false.

Static member StaticShow(form, handle)

Shows a static control.

ParameterTypeDescription
formControlIgnored; the numeric control handle is used.
handleSalNumberThe numeric control handle.

Returns: SalBoolean. True if the control is resolved and the operation completes; otherwise, false.

Static member StatusGetText(ctrl, text, maxLen)

Reads the owning form's status-bar text.

ParameterTypeDescription
ctrlControlThe target control.
text by referenceSalStringReceives the truncated status text, or an empty string if no status bar is found.
maxLenSalNumberThe maximum number of characters to copy.

Returns: SalNumber. The number of characters copied.

Static member StatusSetText(ctrl, text)

ParameterTypeDescription
ctrlControl
textSalString

Returns: SalBoolean.

Static member StatusSetVisible(ctrl, show)

ParameterTypeDescription
ctrlControl
showSalBoolean

Returns: SalBoolean.

Static member StrCompress(str)

ParameterTypeDescription
str by referenceSalString

Returns: SalBoolean.

Static member StrFirstChar(str, charCode)

ParameterTypeDescription
str by referenceSalString
charCode by referenceSalNumber

Returns: SalBoolean.

Static member StrGetBufferLength(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalNumber.

Static member StrIsValidCurrency(money, precision, scale)

ParameterTypeDescription
moneySalStringThe SalString value on which to perform the operation.
precisionSalNumber
scaleSalNumber

Returns: SalBoolean.

Static member StrIsValidDateTime(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalBoolean.

Static member StrIsValidDecimal(str, precision, scale)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.
precisionSalNumber
scaleSalNumber

Returns: SalBoolean.

Static member StrIsValidIdentifierName(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalBoolean.

Static member StrIsValidNumber(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalBoolean.

Static member StrLeft(source, length, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
lengthSalNumber
target by referenceSalString

Returns: SalNumber.

Static member StrLeftX(source, length)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
lengthSalNumber

Returns: SalString.

Static member StrLength(str)

Returns the length of a SAL string.

ParameterTypeDescription
strSalStringThe string to measure.

Returns: SalNumber. The string's Length value.

Static member StrLop(str)

ParameterTypeDescription
str by referenceSalString

Returns: SalNumber.

Static member StrLower(source, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
target by referenceSalString

Returns: SalNumber.

Static member StrLowerX(source)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.

Returns: SalString.

Static member StrMid(source, startPos, length, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
startPosSalNumber
lengthSalNumber
target by referenceSalString

Returns: SalNumber.

Static member StrMidX(source, startPos, length)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
startPosSalNumber
lengthSalNumber

Returns: SalString.

Static member StrProper(source, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
target by referenceSalString

Returns: SalNumber.

Static member StrProperX(source)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.

Returns: SalString.

Static member StrRepeat(source, times, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
timesSalNumber
target by referenceSalString

Returns: SalNumber.

Static member StrRepeatX(source, times)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
timesSalNumber

Returns: SalString.

Static member StrReplace(source, startPos, length, replace, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
startPosSalNumber
lengthSalNumber
replaceSalString
target by referenceSalString

Returns: SalNumber.

Static member StrReplaceX(source, startPos, length, replace)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
startPosSalNumber
lengthSalNumber
replaceSalString

Returns: SalString.

Static member StrRight(source, length, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
lengthSalNumber
target by referenceSalString

Returns: SalNumber.

Static member StrRightX(source, length)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
lengthSalNumber

Returns: SalString.

Static member StrScan(str1, str2)

ParameterTypeDescription
str1SalStringThe SalString value on which to perform the operation.
str2SalString

Returns: SalNumber.

Static member StrSetBufferLength(str, length)

ParameterTypeDescription
str by referenceSalString
lengthSalNumber

Returns: SalBoolean.

Static member StrToDate(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalDateTime.

Static member StrTokenize(source, startDel, endDel, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
startDelSalString
endDelSalString
targetSalArray<SalString>

Returns: SalNumber.

Static member StrToNumber(str)

ParameterTypeDescription
strSalStringThe SalString value on which to perform the operation.

Returns: SalNumber.

Static member StrTrim(source, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
target by referenceSalString

Returns: SalNumber.

Static member StrTrimX(source)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.

Returns: SalString.

Static member StrUncompress(str)

ParameterTypeDescription
str by referenceSalString

Returns: SalBoolean.

Static member StrUpper(source, target)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.
target by referenceSalString

Returns: SalNumber.

Static member StrUpperX(source)

ParameterTypeDescription
sourceSalStringThe SalString value on which to perform the operation.

Returns: SalString.

Static member TabAddPage(control, pageIndex, pageName)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
pageNameSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabAddPageEx(control, pageIndex, pageName, imageFile, tooltip)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
pageNameSalString
imageFileSalString
tooltipSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabAssociateChild(control, pageIndex, child)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
childControl

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabAttachWindow(control, pageIndex, form)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
formControl

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabDetachWindow(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalWindowHandle. For an incompatible control, SalWindowHandle.Null; otherwise,

Static member TabDisablePage(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabDisassociateChild(control, pageIndex, child)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
childControl

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabEnablePage(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabGetActivePage(control)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.

Returns: SalNumber. For an incompatible control, -1; otherwise,

Static member TabGetPageIndex(control, pageName)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageNameSalString

Returns: SalNumber. For an incompatible control, SalBoolean.False; otherwise,

Static member TabGetPageName(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalString. For an incompatible control, SalString.Null; otherwise,

Static member TabGetPageTitle(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalString. For an incompatible control, SalString.Null; otherwise,

Static member TabGetPageWindow(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalWindowHandle. For an incompatible control, SalWindowHandle.Null; otherwise,

Static member TabGetTooltip(control, pageIndex, tooltip, maxLength)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
tooltip by referenceSalString
maxLengthSalNumber

Returns: SalNumber. For an incompatible control, -1; otherwise,

Static member TabHidePage(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabHideStrip(control)

Retains the TabHideStrip operation as a compatibility stub.

ParameterTypeDescription
controlControlIgnored; no operation is performed.

Returns: SalBoolean. False.

Reference arguments, if any, are left unchanged.

Static member TabPageCount(control)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.

Returns: SalNumber. For an incompatible control, 0; otherwise,

Static member TabRemovePage(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabRenamePage(control, pageIndex, pageName)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
pageNameSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabSetActivePage(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabSetPageTitle(control, pageIndex, pageTitle)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
pageTitleSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabSetTooltip(control, pageIndex, tooltip)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber
tooltipSalString

Returns: SalBoolean. For an incompatible control, -1; otherwise,

Static member TabShowPage(control, pageIndex)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.
pageIndexSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TabShowStrip(control)

Retains the TabShowStrip operation as a compatibility stub.

ParameterTypeDescription
controlControlIgnored; no operation is performed.

Returns: SalBoolean. False.

Reference arguments, if any, are left unchanged.

Static member TabUpdate(control)

ParameterTypeDescription
controlControlThe control resolved as SalQuickTabs value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TBarSetVisible(ctrl, show)

ParameterTypeDescription
ctrlControl
showSalBoolean

Returns: SalBoolean.

Static member TblAnyRows(table, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblClearSelection(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblColumnAverage(table, columnId, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
columnIdSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TblColumnSum(table, columnId, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
columnIdSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TblCopyRows(table, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblCreateColumn(table, columnPos, displayWidth, maxChars, title)

Creates a string column in a table window.

ParameterTypeDescription
tableControlThe table control.
columnPosSalNumberThe column insertion position.
displayWidthSalNumberThe display width in form units.
maxCharsSalNumberThe maximum text length.
titleSalStringThe column title.

Returns: SalNumber. The CreateColumn result, or zero when the control is not a table window.

Static member TblCreateColumnEx(table, columnPos, displayWidth, title, maxChars, dataType)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
columnPosSalNumber
displayWidthSalNumber
titleSalString
maxCharsSalNumber
dataTypeSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TblCreateColumnFromClass(table, className, position)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
classNameSalString
positionSalNumber

Returns: SalWindowHandle. For an incompatible control, SalWindowHandle.Null; otherwise,

Static member TblDefineCheckBoxColumn(column, flags, checkedValue, uncheckedValue)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flagsSalNumber
checkedValueSalString
uncheckedValueSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDefineDropDownListColumn(column, flags, lines)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flagsSalNumber
linesSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDefinePopupEditColumn(column, flags, lines)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flagsSalNumber
linesSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDefineRowHeader(table, title, width, flags, column)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
titleSalString
widthSalNumber
flagsSalNumber
columnControl

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDefineSplitWindow(table, rowsLowerHalf, dragAdjust)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowsLowerHalfSalNumber
dragAdjustSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDeleteRow(table, row, flag)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber
flagSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDeleteSelected(table, sql)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDeleteSelected(table, sql, errorHandler)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDestroyColumns(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDoDeletes(table, sql, flagsOn)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
flagsOnSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDoDeletes(table, sql, flagsOn, errorHandler)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
flagsOnSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDoInserts(table, sql, clearFlags)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
clearFlagsSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDoInserts(table, sql, clearFlags, errorHandler)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
clearFlagsSalBoolean
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDoUpdates(ctrl, sql, clearFlags)

ParameterTypeDescription
ctrlControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
clearFlagsSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblDoUpdates(table, sql, clearFlags, errorHandler)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
clearFlagsSalBoolean
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblFetchRow(table, row)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber

Returns: SalNumber. For an incompatible control, Sys.TBL_NoMoreRows; otherwise,

Static member TblFindNextRow(table, row, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
row by referenceSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblFindPrevRow(table, row, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
row by referenceSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblGetColumnText(table, columnId, text)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
columnIdSalNumber
text by referenceSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblGetColumnTitle(column, text, maxLen)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
text by referenceSalString
maxLenSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TblGetColumnWindow(table, col, flags)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
colSalNumber
flagsSalNumber

Returns: SalWindowHandle. For an incompatible control, SalWindowHandle.Null; otherwise,

Static member TblInsertRow(table, row)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TblKillEdit(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblKillFocus(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblObjectsFromPoint(table, x, y, row, column, flags)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
xSalNumber
ySalNumber
row by referenceSalNumber
column by referenceSalWindowHandle
flags by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblPasteRows(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblPopulate(table, sql, select, method)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
selectSalString
methodSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblPopulate(table, sql, select, method, errorHandler)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
sqlSalSqlHandle
selectSalString
methodSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblPopulateFromXML(table, file, rootNode, tableNode, useSchema)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
fileSalString
rootNodeSalString
tableNodeSalBoolean
useSchemaSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryCheckBoxColumn(column, flags, checkedValue, uncheckedValue)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flags by referenceSalNumber
checkedValue by referenceSalString
uncheckedValue by referenceSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryColumnCellType(column, type)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
type by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryColumnFlags(column, flags)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flagsSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryColumnID(column)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.

Returns: SalNumber. For an incompatible control, SalNumber.MinusOne; otherwise,

Static member TblQueryColumnPos(column)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.

Returns: SalNumber. For an incompatible control, SalNumber.MinusOne; otherwise,

Static member TblQueryColumnWidth(column, width)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
width by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryContext(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Example:

Save and restore the row context while updating a column in another row.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public static class RowExample
{
public static bool SetStatus(SalTableWindow table,
SalNumber row, SalNumber statusColumnId)
{
SalNumber saved = Sal.TblQueryContext(table);
try
{
if (!Sal.TblSetContext(table, row))
return false;
return table.SetColumnText(statusColumnId, "Reviewed");
}
finally
{
// The original row must still exist when it is restored.
Sal.TblSetContext(table, saved);
}
}
}

Static member TblQueryDropDownListColumn(column, flags, lines)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flags by referenceSalNumber
lines by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryFocus(table, row, column)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
row by referenceSalNumber
column by referenceSalWindowHandle

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryLinesPerRow(table, nLines)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
nLines by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryLockedColumns(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TblQueryPopupEditColumn(column, flags, lines)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flags by referenceSalNumber
lines by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryRowFlags(table, row, flags)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber
flagsSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryRowHeader(table, title, maxTitle, width, flags, windowCol)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
title by referenceSalString
maxTitleSalNumber
width by referenceSalNumber
flags by referenceSalNumber
windowCol by referenceSalWindowHandle

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryScroll(table, position, minRange, maxRange)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
position by referenceSalNumber
minRange by referenceSalNumber
maxRange by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQuerySplitWindow(table, rowsLowerHalf, dragAdjust)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowsLowerHalf by referenceSalNumber
dragAdjust by referenceSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryTableFlags(table, flags)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
flagsSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblQueryVisibleRange(table, minRange, maxRange)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
minRange by referenceSalNumber
maxRange by referenceSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblReset(table)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblScroll(table, row, column, flags)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber
columnControl
flagsSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblScroll(table, row, column)

Scrolls a table to make a row and column visible.

ParameterTypeDescription
tableControlThe table control.
rowSalNumberThe row to reveal.
columnControlThe column to reveal.

Returns: SalBoolean. The four-argument TblScroll result with options set to zero.

Static member TblSetCellTextColor(column, colorValue, discardable)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
colorValueSalNumber
discardableSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetCellTextColor(column, colorValue)

Sets a table cell's text color without marking the value discardable.

ParameterTypeDescription
columnControlThe table column for the current context row.
colorValueSalNumberThe SAL color value.

Returns: SalBoolean. The three-argument TblSetCellTextColor result with discardable set to false.

Static member TblSetColumnFlags(column, flags, set)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
flagsSalNumber
setSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetColumnPos(column, pos)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
posSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetColumnText(table, columndId, text)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
columndIdSalNumber
textSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetColumnTitle(column, title)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
titleSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetColumnWidth(column, width)

ParameterTypeDescription
columnControlThe control resolved as SalTableColumn value on which to perform the operation.
widthSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetContext(table, nRow)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
nRowSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Example:

Save and restore the row context while updating a column in another row.

using PPJ.Runtime;
using PPJ.Runtime.Windows;
using System.Windows.Forms;

public static class RowExample
{
public static bool SetStatus(SalTableWindow table,
SalNumber row, SalNumber statusColumnId)
{
SalNumber saved = Sal.TblQueryContext(table);
try
{
if (!Sal.TblSetContext(table, row))
return false;
return table.SetColumnText(statusColumnId, "Reviewed");
}
finally
{
// The original row must still exist when it is restored.
Sal.TblSetContext(table, saved);
}
}
}

Static member TblSetFlagsAnyRows(table, flags, set, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
flagsSalNumber
setSalBoolean
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetFocusCell(table, row, column, editMin, editMax)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber
columnControl
editMinSalNumber
editMaxSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetFocusRow(table, row)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetLinesPerRow(table, lines)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
linesSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetLockedColumns(table, lockedColumns)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
lockedColumnsSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetRange(table, min, max)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
minSalNumber
maxSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetRow(table, rowPosition)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowPositionSalNumber

Returns: SalNumber. For an incompatible control, Sys.TBL_Error; otherwise,

Static member TblSetRowFlags(table, row, flags, set)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
rowSalNumber
flagsSalNumber
setSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSetTableFlags(table, flags, set)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
flagsSalNumber
setSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblSortRows(table, columnId, order)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
columnIdSalNumber
orderSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblWriteXMLandSchema(table, path, writeTypes)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
pathSalString
writeTypesSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TblWriteXMLandSchemaEx(table, path, writeTypes, flagsOn, flagsOff)

ParameterTypeDescription
tableControlThe control resolved as SalTableWindow value on which to perform the operation.
pathSalString
writeTypesSalNumber
flagsOnSalNumber
flagsOffSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.False; otherwise,

Static member TimerKill(ctrl, eventId)

ParameterTypeDescription
ctrlControl
eventIdSalNumber

Returns: SalBoolean.

Static member TimerSet(ctrl, eventId, milliseconds)

ParameterTypeDescription
ctrlControl
eventIdSalNumber
millisecondsSalNumber

Returns: SalBoolean.

Static member Trace(severity, textToWrite)

ParameterTypeDescription
severitySalNumber
textToWriteSalString

Returns: SalBoolean.

Static member TrackPopupMenu(owner, menuName, flags, x, y)

Creates and displays a popup menu.

ParameterTypeDescription
ownerControlThe popup owner.
menuNameSalStringThe menu type name to resolve.
flagsSalNumberTPM_ positioning and interaction flags supported by the runtime.
xSalNumberThe horizontal screen coordinate in pixels, unless TPM_CursorX is set.
ySalNumberThe vertical screen coordinate in pixels, unless TPM_CursorY is set.

Returns: SalBoolean. True if the popup is created and displayed; otherwise, false.

Static member TrackPopupMenu(owner, menuType, flags, x, y)

Creates and displays a popup menu.

ParameterTypeDescription
ownerControlThe popup owner.
menuTypeTypeThe menu type to instantiate.
flagsSalNumberTPM_ positioning and interaction flags supported by the runtime.
xSalNumberThe horizontal screen coordinate in pixels, unless TPM_CursorX is set.
ySalNumberThe vertical screen coordinate in pixels, unless TPM_CursorY is set.

Returns: SalBoolean. True if the popup is created and displayed; otherwise, false.

Static member TreeCollapseItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeDeleteItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeDemoteItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeEditItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeEnableItem(ctrl, hItem, enable)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
enableSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeExpandItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeFindItemByData(ctrl, hItem, data)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
dataSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeFindItemByTitle(ctrl, hItem, title)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
titleSalString

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetFirstItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetItemCount(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetItemData(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetItemParent(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetItemText(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalString. For an incompatible control, SalString.Null; otherwise,

Static member TreeGetItemTooltip(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalString. For an incompatible control, SalString.Null; otherwise,

Static member TreeGetNextItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetPrevItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeGetSelectedItem(ctrl)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeInsertItem(ctrl, hItem, index, title)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
indexSalNumber
titleSalString

Returns: SalNumber. For an incompatible control, SalNumber.Zero; otherwise,

Static member TreeItemHasCheckBox(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeItemIsChecked(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeItemIsExpanded(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeItemIsSelected(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeItemsHaveCheckBoxes(ctrl)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeMoveDownItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeMoveItem(ctrl, hItem, parentItem, position)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
parentItemSalNumber
positionSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeMoveUpItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreePromoteItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeReset(ctrl, remove)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
removeSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemChecked(ctrl, hItem, bChecked)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
bCheckedSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemData(ctrl, hItem, value)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
valueSalNumber

Returns: SalNumber. For an incompatible control, SalNumber.Null; otherwise,

Static member TreeSetItemEditable(ctrl, hItem, editable)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
editableSalBoolean

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemFontEnh(ctrl, hItem, fontEnh)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
fontEnhSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemImage(ctrl, hItem, selected, imageFile)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
selectedSalBoolean
imageFileSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemImageFromBinary(ctrl, hItem, selected, format, picture)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
selectedSalBoolean
formatSalNumber
pictureSalBinary

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemImageFromResource(ctrl, hItem, selected, resource)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
selectedSalBoolean
resourceSalResource

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemText(ctrl, hItem, text)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
textSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemTextColor(ctrl, hItem, color)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
colorSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetItemTooltip(ctrl, hItem, tooltip)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
tooltipSalString

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeSetSelectedItem(ctrl, hItem)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber

Returns: SalBoolean. For an incompatible control, SalBoolean.Null; otherwise,

Static member TreeShowItemCheckBox(ctrl, hItem, show)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
hItemSalNumber
showSalBoolean

Returns: SalBoolean. For an incompatible control, SalNumber.Zero; otherwise,

Static member TreeShowItemsCheckBoxes(ctrl, show)

ParameterTypeDescription
ctrlControlThe control resolved as SalTreeControl value on which to perform the operation.
showSalBoolean

Returns: SalBoolean. For an incompatible control, SalNumber.Zero; otherwise,

Static member UpdateWindow(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalBoolean.

Static member UseEventLog(useLog, resume)

ParameterTypeDescription
useLogSalBoolean
resumeSalBoolean

Returns: SalBoolean.

Static member UseRegistry(useRegistry, companyName)

ParameterTypeDescription
useRegistrySalBoolean
companyNameSalString

Returns: SalBoolean.

Static member ValidateSet(window, state, lParam)

Deprecated memberDeprecated: Not supported. Retains the ValidateSet operation as a compatibility stub.

ParameterTypeDescription
windowSalWindowHandleIgnored; no operation is performed.
stateSalBooleanIgnored; no operation is performed.
lParamSalNumberIgnored; no operation is performed.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member WaitCursor(on)

ParameterTypeDescription
onSalBoolean

Returns: SalBoolean.

Static member WindowClassName(ctrl)

ParameterTypeDescription
ctrlControl

Returns: SalString.

Static member WindowGetDockSetting(window, orientation)

Retains the WindowGetDockSetting operation as a compatibility stub.

ParameterTypeDescription
windowSalWindowHandleIgnored; no operation is performed.
orientation by referenceSalNumberIgnored; no operation is performed.

Returns: SalBoolean. False.

Reference arguments, if any, are left unchanged.

Static member WindowGetProperty(ctrl, name, value)

ParameterTypeDescription
ctrlControl
nameSalString
value by referenceSalString

Returns: SalBoolean.

Static member WindowHandleToNumber(window)

ParameterTypeDescription
windowSalWindowHandleThe SalWindowHandle value on which to perform the operation.

Returns: SalNumber.

Static member WindowHandleToNumber(file)

Returns a runtime handle identifier as a SAL number.

ParameterTypeDescription
fileSalFileHandleThe handle whose identifier is read.

Returns: SalNumber. The numeric Handle value.

Static member WindowHandleToNumber(sql)

Returns a runtime handle identifier as a SAL number.

ParameterTypeDescription
sqlSalSqlHandleThe handle whose identifier is read.

Returns: SalNumber. The numeric Handle value.

Static member WindowHandleToNumber(session)

Returns a runtime handle identifier as a SAL number.

ParameterTypeDescription
sessionSalSqlSessionHandleThe handle whose identifier is read.

Returns: SalNumber. The numeric Handle value.

Static member WindowIsDerivedFromClass(ctrl, type)

ParameterTypeDescription
ctrlControl
typeType

Returns: SalBoolean.

Static member WindowSetProperty(ctrl, name, value, length)

Stores a named SAL string property after truncating its value.

ParameterTypeDescription
ctrlControlThe target control.
nameSalStringThe property name.
valueSalStringThe value to store.
lengthSalNumberThe maximum number of characters to retain.

Returns: SalBoolean. The result of SalWindow.SetProperty.

Static member WinHelp(ctrl, file, command, index, key)

ParameterTypeDescription
ctrlControl
fileSalString
commandSalNumber
indexSalNumber
keySalString

Returns: SalBoolean.

Static member XMLDeserialize<T>(obj, filePath)

Attempts to deserialize a value from an XML file.

ParameterTypeDescription
TThe type of the value to serialize or deserialize.
obj by referenceTReceives the deserialized value on success; unchanged on failure.
filePathSalStringThe source XML file path.

Returns: SalBoolean. True, including when deserialization fails.

Clears the previous XML error first. Errors are logged and retained for XMLGetLastError.

Static member XMLDeserialize<T>(xml)

Deserializes a value from XML encoded as UTF-16.

ParameterTypeDescription
TThe type to deserialize.
xmlSalStringThe XML text.

Returns: T. The deserialized value, or default(T) on an exception.

Errors are logged and retained for XMLGetLastError.

Static member XMLGetLastError(errorCode, errorMessage)

Retrieves the exception recorded by the most recent XML operation.

ParameterTypeDescription
errorCode by referenceSalNumberReceives the HRESULT, or zero when no exception was recorded.
errorMessage by referenceSalStringReceives the exception message, or an empty string when no exception was recorded.

Returns: SalBoolean. True if an exception was recorded; otherwise, false.

Static member XMLSerialize<T>(obj, filePath)

Attempts to serialize a value to an XML file.

ParameterTypeDescription
TThe type of the value to serialize or deserialize.
objTThe value to serialize.
filePathSalStringThe destination file path.

Returns: SalBoolean. True, including when serialization fails.

Clears the previous XML error before attempting the operation. Errors are logged and retained for XMLGetLastError.

Static member XMLSerialize<T>(obj)

Serializes a value and decodes the backing memory buffer as UTF-16.

ParameterTypeDescription
TThe type to serialize.
objTThe value to serialize.

Returns: SalString. The decoded backing buffer, or SalString.Null on an exception.

The entire buffer capacity is decoded, so unused trailing bytes can appear as null characters. Errors are logged and retained for XMLGetLastError.

Static member Yield(ctrl)

Allows pending window messages to be processed.

ParameterTypeDescription
ctrlControlThe control whose current SAL context is preserved.

Static member YieldEnable(set)

Deprecated memberDeprecated: Use Sal.Yield(window). Retains the YieldEnable operation as a compatibility stub.

ParameterTypeDescription
setSalBooleanIgnored; no operation is performed.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member YieldQueryState()

Deprecated memberDeprecated: Use Sal.Yield(window). Retains the YieldQueryState operation as a compatibility stub.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member YieldStartMessages(window)

Deprecated memberDeprecated: Use Sal.Yield(window). Retains the YieldStartMessages operation as a compatibility stub.

ParameterTypeDescription
windowSalWindowHandleIgnored; no operation is performed.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.

Static member YieldStopMessages()

Deprecated memberDeprecated: Use Sal.Yield(window). Retains the YieldStopMessages operation as a compatibility stub.

Returns: SalBoolean. False.

Logs the unsupported call. Reference arguments are left unchanged.