Skip to main content
Version: 2025

XSal

Namespace: PPJ.Runtime.XSal

Assembly: PPJ.Web.XSal.50 (5.0.0.0)

Provides XSal compatibility operations for tables, splitters, toolboxes, strings, scripts, and archive data.

public class XSal

Example:

SalString token = XSal.StrGetFirstToken("red,green,blue", ",");
while (!token.IsNull)
{
System.Console.WriteLine(token);
token = XSal.StrGetNextToken();
}

Fields

NameTypeDescriptionValue
SAM_HotSpotClickInt32Compatibility message identifier for a hotspot click.
SAM_HotSpotMouseMoveInt32Compatibility message identifier for mouse movement over a hotspot.
SAM_SwapRowsInt32Message identifier used when table rows are exchanged.
SAM_ToolboxSetPositionInt32Compatibility message identifier for a toolbox-position change.
SAM_ToolboxUpdateMenuInt32Compatibility message identifier for updating a toolbox menu.
SAM_TooltipCloseInt32Compatibility message identifier for closing a tooltip.
SAM_TooltipSetTextInt32Compatibility message identifier for supplying tooltip text.

Methods

Static member GetClientWindow(form)

Gets the SAL client-area control associated with a form.

ParameterTypeDescription
formControlThe form or control to inspect.

Returns: SalWindowHandle. The client-area handle returned by SalWindow.GetClientArea.

Static member GetWindowHotSpot(ctrl, id, x, y, width, height)

Provides an unimplemented hotspot query compatibility entry point.

ParameterTypeDescription
ctrlControlReserved; ignored.
idSalNumberReserved; ignored.
x by referenceSalNumberNot modified.
y by referenceSalNumberNot modified.
width by referenceSalNumberNot modified.
height by referenceSalNumberNot modified.

Returns: SalBoolean. Always false.

Static member GZipClose(Param1)

Provides an unsupported compatibility entry point for closing a gzip stream.

ParameterTypeDescription
Param1 by referenceSalNumberReserved for compatibility; not modified.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipEof(Param1)

Provides an unsupported compatibility entry point for testing gzip end-of-file.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipFlush(Param1)

Provides an unsupported compatibility entry point for flushing a gzip stream.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipGetChar(Param1)

Provides an unsupported compatibility entry point for reading a gzip character.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipGetError(Param1, Param2)

Provides an unsupported compatibility entry point for querying a gzip error.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalNumberReserved for compatibility; not modified.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member GZipGetStr(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for reading a gzip string.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalStringReserved for compatibility; not modified.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipOpen(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for opening a gzip stream.

ParameterTypeDescription
Param1 by referenceSalNumberReserved for compatibility; not modified.
Param2SalStringReserved for compatibility; ignored.
Param3SalStringReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipPutChar(Param1, Param2)

Provides an unsupported compatibility entry point for writing a gzip character.

ParameterTypeDescription
Param1SalFileHandleReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipPutStr(Param1, Param2)

Provides an unsupported compatibility entry point for writing a gzip string.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalStringReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipRead(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for reading gzip data.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalStringReserved for compatibility; not modified.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipRewind(Param1)

Provides an unsupported compatibility entry point for rewinding a gzip stream.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipSeek(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for seeking within a gzip stream.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipTell(Param1)

Provides an unsupported compatibility entry point for querying a gzip position.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipWrite(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for writing gzip data.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalStringReserved for compatibility; ignored.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member ScriptAddLine(handle, line)

Appends a script line and recompiles the program.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
lineSalStringThe line to append.

Returns: SalBoolean. The compilation result, or false for a null handle.

Static member ScriptCreate(source)

Creates and compiles a script and allocates its handle.

ParameterTypeDescription
sourceSalStringThe script source; a complete brace-delimited block enables C# syntax.

Returns: SalNumber. The allocated script handle. Compilation errors are recorded and can be queried separately.

Static member ScriptFree(handle)

Releases the script’s context and allocated handle.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.

Returns: SalBoolean. True if a script was released; false for a null handle.

Static member ScriptGetErrors(handle, errorsList)

Retrieves a script’s recorded error text.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
errorsList by referenceSalStringReceives error text when an error exists; otherwise unchanged.

Returns: SalNumber. The error-text length, or zero when no script or error exists.

Static member ScriptGetLocalName(handle, localName, varName)

Deprecated memberDeprecated: Not supported. Provides an unsupported compatibility entry point for resolving a script-local variable name.

ParameterTypeDescription
handleSalNumberReserved for compatibility; ignored.
localNameSalStringReserved for compatibility; ignored.
varName by referenceSalStringReserved for compatibility; not modified.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member ScriptRun(handle, result)

Executes a compiled script and retrieves its textual result.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
result by referenceSalStringReceives the result text when a script exists.

Returns: SalBoolean. True if the script has no recorded errors after execution; false for a null handle or recorded error.

Static member ScriptSetContext(handle, context)

Assigns the object used for script member lookup during execution.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
contextObjectThe execution context object.

Returns: SalBoolean. True if the context was assigned; false for a null handle.

Static member ScriptSetDebugMode(handle, debugOn)

Controls whether parser and interpreter exceptions propagate from a script.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
debugOnSalBooleanTrue to rethrow errors instead of recording them.

Returns: SalBoolean. True if the setting was applied; false for a null handle.

Static member ScriptSetTimeout(handle, timeout)

Deprecated memberDeprecated: Not supported. Provides an unsupported compatibility entry point for setting a script execution timeout.

ParameterTypeDescription
handleSalNumberReserved for compatibility; ignored.
timeoutSalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member SetWindowHotSpot(ctrl, id, x, y, width, height)

Provides an unimplemented hotspot configuration compatibility entry point.

ParameterTypeDescription
ctrlControlReserved; ignored.
idSalNumberReserved; ignored.
xSalNumberReserved; ignored.
ySalNumberReserved; ignored.
widthSalNumberReserved; ignored.
heightSalNumberReserved; ignored.

Returns: SalBoolean. Always false.

Static member SetWindowImageFile(ctrl, fileName, flags)

Loads a background image and applies its layout to a control or its client-area control.

ParameterTypeDescription
ctrlControlThe target control.
fileNameSalStringThe image-file path.
flagsBackgroundImageFlagsThe image layout. Transparent is ignored.

Returns: SalBoolean. True if the image and layout are assigned; false for a caught loading or assignment error.

Static member SplitGetBarPosition(split)

Gets an XSal splitter’s current or deferred position.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.

Returns: SalNumber. The position in pixels or thousandths according to its style, or zero for an invalid splitter.

Static member SplitGetFrameChild(split, frame)

Gets a control hosted in an XSal splitter panel.

ParameterTypeDescription
splitSalWindowHandleThe XSal splitter handle.
frameSalNumberZero for the first panel, one for the second.

Returns: SalWindowHandle. The child handle, or a null handle for an invalid splitter, frame, or empty panel.

Static member SplitGetStyle(split)

Gets the splitter’s orientation, absolute-position, and resizing flags.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.

Returns: SplitterStyles. The supported style mask, excluding Invisible, or zero for an invalid splitter.

Static member SplitSetBarPosition(split, pos)

Sets an XSal splitter’s position.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
posSalNumberThe position in pixels for absolute mode or thousandths for proportional mode.

Returns: SalBoolean. True if assigned or deferred; false for an invalid splitter.

Static member SplitSetBarSize(split, size)

Sets an XSal splitter bar’s width.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
sizeSalNumberThe width in pixels.

Returns: SalBoolean. True on assignment; false if the handle is not an XSal splitter.

Static member SplitSetFrameChild(split, child, frame)

Assigns a control to one of an XSal splitter’s panels.

ParameterTypeDescription
splitSalWindowHandleThe XSal splitter handle.
childSalWindowHandleThe child-control handle, or a null handle to clear the panel.
frameSalNumberZero for the first panel, one for the second.

Returns: SalBoolean. True if assigned; false for an invalid splitter or frame number.

Static member SplitSetMinMax(split, min, max)

Sets minimum sizes for the first and second splitter panels.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
minSalNumberThe first panel’s minimum size in pixels.
maxSalNumberThe second panel’s minimum size in pixels.

Returns: SalBoolean. True on assignment; false for an invalid splitter.

Static member SplitSetStyle(split, Style, on)

Applies supported XSal splitter style flags.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
StyleSplitterStylesThe flags to change.
onSalBooleanTrue to enable the selected flags; false to disable them.

Returns: SalBoolean. True on assignment; false for an invalid splitter.

Static member StrAny(text, chars)

Finds the first character belonging to a specified character set.

ParameterTypeDescription
textSalStringThe text to scan.
charsSalStringThe characters to match.

Returns: SalNumber. The zero-based index, or -1 if no character matches.

Static member StrCompare(source, compare, start, size, caseSensitive)

Compares a source segment with the beginning of another string using the current culture.

ParameterTypeDescription
sourceSalStringThe source text.
compareSalStringThe comparison text.
startSalNumberThe starting source index.
sizeSalNumberThe maximum number of characters to compare.
caseSensitiveSalBooleanTrue to distinguish case; false to ignore case.

Returns: SalBoolean. True if the compared segments are equal; false on mismatch or an out-of-range argument.

Static member StrCompress(sIn, nLevel, sOut)

Compresses the input bytes into an XSal-prefixed binary string.

ParameterTypeDescription
sInSalStringThe binary string to compress.
nLevelSalNumberThe requested compression level; the current clamping expression always selects level 9.
sOut by referenceSalStringReceives the compressed binary string, or SalString.Null when no bytes are produced.

Returns: SalBoolean. True if compression completes; false for null input or a caught compression error.

Static member StrCount(sText, sSearch, nStart, nLength, bLeft)

Counts nonoverlapping, case-insensitive substring matches within a selected text segment.

ParameterTypeDescription
sTextSalStringThe text to search.
sSearchSalStringThe nonempty substring to count.
nStartSalNumberThe segment’s starting index for a forward search or ending index for a leftward search.
nLengthSalNumberThe segment length.
bLeftSalBooleanTrue to select a segment ending at nStart; false to select one starting there.

Returns: SalNumber. The number of matches, or zero for empty input or an unusable segment.

Static member StrFormat(text, mask)

Builds text using underscore placeholders and percent remainder markers.

ParameterTypeDescription
textSalStringThe source characters.
maskSalStringAn underscore consumes one source character; percent appends all remaining source text; other characters are copied literally.

Returns: SalString. The constructed text followed by the unused mask suffix.

The percent marker itself remains in the appended mask suffix in this implementation.

Static member StrFormatDateTime(date, format, language)

Provides an unsupported compatibility entry point for formatting a date with a language.

ParameterTypeDescription
dateSalDateTimeReserved for compatibility; ignored.
formatSalStringReserved for compatibility; ignored.
languageSalStringReserved for compatibility; ignored.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member StrFormatDateTimeX(date, format, days, shortDays, months, shortMonths)

Provides an unsupported compatibility entry point for formatting a date with custom names.

ParameterTypeDescription
dateSalDateTimeReserved for compatibility; ignored.
formatSalStringReserved for compatibility; ignored.
daysSalStringReserved for compatibility; ignored.
shortDaysSalStringReserved for compatibility; ignored.
monthsSalStringReserved for compatibility; ignored.
shortMonthsSalStringReserved for compatibility; ignored.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member StrFromHex(hex)

Decodes pairs of uppercase hexadecimal digits into a SAL binary string.

ParameterTypeDescription
hexSalStringThe hexadecimal text, optionally prefixed with lowercase 0x.

Returns: SalString. The decoded bytes, or SalString.Null for input shorter than two characters.

An unmatched final digit is ignored. Digits are not validated, and lowercase hexadecimal letters are not normalized.

Static member StrGetCharAt(text, index)

Gets the numeric value of a character at a zero-based index.

ParameterTypeDescription
textSalStringThe source text.
indexSalNumberThe character index.

Returns: SalNumber. The character value, or zero for empty text or an invalid index.

Static member StrGetFirstToken(list, separators)

Replaces the shared token sequence and returns its first nonempty token.

ParameterTypeDescription
listSalStringThe text to split.
separatorsSalStringThe delimiter characters.

Returns: SalString. The first token, or SalString.Null if none exists.

Static member StrGetNextToken()

Advances the shared token sequence created by StrGetFirstToken.

Returns: SalString. The next token, or SalString.Null when no sequence or tokens remain.

Static member StrMetaphone(text)

Provides an unsupported compatibility entry point for computing a Metaphone code.

ParameterTypeDescription
textSalStringReserved for compatibility; ignored.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member StrNAny(text, chars)

Finds the first character outside a specified character set.

ParameterTypeDescription
textSalStringThe text to scan.
charsSalStringThe allowed characters.

Returns: SalNumber. The zero-based index, or -1 when every character belongs to the set.

Static member StrScan(sText, search, nIndex)

Searches forward using ordinal case-insensitive comparison.

ParameterTypeDescription
sTextSalStringThe text to search.
searchSalStringThe nonempty substring to find.
nIndexSalNumberThe starting index, clamped to the text length; negative values fail.

Returns: SalNumber. The matching zero-based index, or -1 for no match or invalid input.

Static member StrScanR(sText, search, nIndex)

Searches backward using ordinal case-insensitive comparison.

ParameterTypeDescription
sTextSalStringThe text to search.
searchSalStringThe nonempty substring to find.
nIndexSalNumberThe starting index; a negative value searches from the end, and larger values are clamped to the text length.

Returns: SalNumber. The matching zero-based index, or -1 for no match or invalid input.

Static member StrSetCharAt(text, index, character)

Replaces a character at a zero-based index.

ParameterTypeDescription
text by referenceSalStringThe text to modify.
indexSalNumberThe character index.
characterSalNumberThe numeric character value to insert.

Returns: SalNumber. The previous character value, or zero for empty text or an invalid index.

Static member StrToHex(text)

Encodes the string’s binary buffer as uppercase hexadecimal prefixed with 0x.

ParameterTypeDescription
textSalStringThe string whose bytes are encoded.

Returns: SalString. The hexadecimal text, or SalString.Null for empty input.

Static member StrToNumber(text)

Parses a number after adapting the first period or comma to the current decimal separator when needed.

ParameterTypeDescription
textSalStringThe numeric text.

Returns: SalNumber. The parsed SAL number, or SalNumber.Null for empty or unparseable input.

Static member StrUncompress(sIn, sOut)

Decompresses bytes after the three-byte XSal compression prefix.

ParameterTypeDescription
sInSalStringThe binary string beginning with XZ.
sOut by referenceSalStringReceives decompressed data, or SalString.Null for an empty output.

Returns: SalBoolean. False for invalid input or a caught decompression error; otherwise, true.

A trailing zero terminator from compatible CTD strings may be removed when the result is converted to ordinary text.

Static member TblCopyRows(table, flagsOn, flagsOff, copyFlags)

Copies matching table rows in display-column order to the clipboard.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
flagsOnSalNumberThe flags required on copied rows.
flagsOffSalNumberThe flags that must be clear on copied rows.
copyFlagsTableWindowClipboardFlagsOptions to skip hidden columns and include captions.

Returns: SalBoolean. True if some text was produced; false for an invalid table or no output.

Uses the configured literal delimiters without quoting or escaping. The row context is restored. A caught copy error can leave partial output.

Static member TblCopyRowsToString(table, flagsOn, flagsOff, copyFlags, csvText)

Copies matching table rows in display-column order to delimited text.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
flagsOnSalNumberThe flags required on copied rows.
flagsOffSalNumberThe flags that must be clear on copied rows.
copyFlagsTableWindowClipboardFlagsOptions to skip hidden columns and include captions.
csvText by referenceSalStringReceives the delimited rows on success.

Returns: SalBoolean. True if some text was produced; false for an invalid table or no output.

Uses the configured literal delimiters without quoting or escaping. The row context is restored. A caught copy error can leave partial output.

Static member TblGetCellBackColor(column, color)

Retrieves the current-context cell’s explicit background color as a SAL color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
color by referenceSalNumberReceives the translated color, including translated Color.Empty when the query fails.

Returns: SalBoolean. True if a nonempty explicit background color exists; otherwise, false.

Static member TblGetCellBackColor(column)

Gets the current-context cell’s explicit background color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Color. The explicit color, or Color.Empty if no explicit color or target style exists.

Static member TblGetCellFont(column)

Gets the current-context cell’s explicit font.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Font. The style font, or null when no font or target style exists.

Static member TblGetCellImage(column, position)

Gets the current-context cell’s background image.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
position by referenceTableWindowImageFlagsReceives the converted layout and alignment when an image exists; otherwise unchanged.

Returns: Image. The image, or null when the target style or image is absent.

Static member TblGetColHeaderFont(column)

Gets the main-grid column header’s explicit font.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Font. The style font, or null when no font or target style exists.

Static member TblGetColHeaderImage(column, image, position)

Retrieves the background image through the compatibility column-header image query.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
image by referenceImageReceives the image, or null when absent.
position by referenceTableWindowImageFlagsReceives the converted layout and alignment when an image exists; otherwise unchanged.

Returns: SalBoolean. True if an image is returned.

The underlying implementation reads the current-context cell style rather than the column-header style.

Static member TblGetColumnBackColor(column, color)

Retrieves the main-grid column’s explicit background color as a SAL color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
color by referenceSalNumberReceives the translated color, including translated Color.Empty when the query fails.

Returns: SalBoolean. True if a nonempty explicit background color exists; otherwise, false.

Static member TblGetColumnBackColor(column)

Gets the main-grid column’s explicit background color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Color. The explicit color, or Color.Empty if no explicit color or target style exists.

Static member TblGetColumnFont(column)

Gets the main-grid column’s explicit font.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Font. The style font, or null when no font or target style exists.

Static member TblGetRowBackColor(table, row, color)

Retrieves the table row’s explicit background color as a SAL color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
color by referenceSalNumberReceives the translated color, including translated Color.Empty when the query fails.

Returns: SalBoolean. True if a nonempty explicit background color exists; otherwise, false.

Static member TblGetRowBackColor(table, row)

Gets the table row’s explicit background color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.

Returns: Color. The explicit color, or Color.Empty if no explicit color or target style exists.

Static member TblGetRowFont(table, nRow)

Gets the table row’s explicit font.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
nRowSalNumberThe SAL row context.

Returns: Font. The style font, or null when no font or target style exists.

Static member TblGetRowHeaderBackColor(table, row, color)

Retrieves the row header’s explicit background color as a SAL color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
color by referenceSalNumberReceives the translated color, including translated Color.Empty when the query fails.

Returns: SalBoolean. True if a nonempty explicit background color exists; otherwise, false.

Static member TblGetRowHeaderBackColor(table, row)

Gets the row header’s explicit background color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.

Returns: Color. The explicit color, or Color.Empty if no explicit color or target style exists.

Static member TblPasteRows(table, copyFlags)

Appends rows from clipboard text using the configured delimiters.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
copyFlagsTableWindowClipboardFlagsOptions to skip the caption row and hidden columns.

Returns: SalBoolean. False for an invalid table or unavailable clipboard text; otherwise, true, including partial processing after a caught error.

Empty delimited rows are retained. The implementation begins column lookup at position zero, although table positions are one-based, so inserted rows may remain empty. The previous row context is restored.

Static member TblPasteRowsFromString(table, flags, csvText)

Appends rows from delimited text using the configured delimiters.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
flagsTableWindowClipboardFlagsOptions to skip the caption row and hidden columns.
csvTextSalStringThe unescaped delimited row text.

Returns: SalBoolean. False for an invalid table; otherwise, true, including partial processing after a caught error.

Empty delimited rows are retained. The implementation begins column lookup at position zero, although table positions are one-based, so inserted rows may remain empty. The previous row context is restored.

Static member TblSetCellBackColor(column, color)

Sets the current-context cell’s explicit background color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
colorSalNumberThe SAL color value to translate.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetCellBackColor(column, color)

Sets the current-context cell’s explicit background color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
colorColorThe new color.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetCellFont(column, font)

Sets the current-context cell’s explicit font.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontFontThe font, or null to clear the explicit style font.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetCellImage(column, image, flags)

Sets the current-context cell’s background image.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageImageA bitmap to assign, or null to clear the image. Other Image implementations leave the style unchanged.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style exists, even when the image is not a bitmap; otherwise, false.

Static member TblSetCellImageFile(column, fileName, flags)

Loads a background image from a file and assigns it to the current-context cell.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fileNameSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false, including caught image-loading errors.

Static member TblSetCellImageResource(column, name, flags)

Loads a background image from a named SAL resource and assigns it to the current-context cell.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
nameSalStringThe SAL resource name.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

A missing resource supplies null and clears the cell image.

Static member TblSetCellImageString(column, imageBlob, flags)

Loads a background image from bitmap binary data and assigns it to the current-context cell.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageBlobSalStringThe bitmap bytes in a SAL binary string.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

Static member TblSetColHeaderFont(column, font)

Sets the main-grid column header’s explicit font.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontFontThe font, or null to clear the explicit style font.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetColHeaderFontName(column, fontName, fontSize, fontStyle)

Creates a font and assigns it to the main-grid column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontStyleSalNumberThe SAL font-style flags.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetColHeaderImage(column, image, flags)

Sets the main-grid column header’s background image.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageImageA bitmap to assign, or null to clear the image. Other Image implementations leave the style unchanged.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style exists, even when the image is not a bitmap; otherwise, false.

Static member TblSetColHeaderImageFile(column, fileName, flags)

Loads a background image from a file and assigns it to the main-grid column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fileNameSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false, including caught image-loading errors.

Static member TblSetColHeaderImageResource(column, resName, flags)

Loads a background image from a named SAL resource and assigns it to the main-grid column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
resNameSalStringThe SAL resource name.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

A missing or non-bitmap resource returns false.

Static member TblSetColHeaderImageString(column, imageBlob, flags)

Loads a background image from bitmap binary data and assigns it to the main-grid column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageBlobSalStringThe bitmap bytes in a SAL binary string.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

Static member TblSetColumnBackColor(column, color)

Sets the main-grid column’s explicit background color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
colorSalNumberThe SAL color value to translate.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetColumnBackColor(column, color)

Sets the main-grid column’s explicit background color.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
colorColorThe new color.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetColumnFont(column, font)

Sets the main-grid column’s explicit font.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontFontThe font, or null to clear the explicit style font.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetColumnFontName(column, fontName, fontSize, fontStyle)

Creates a font and assigns it to the main-grid column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontStyleSalNumberThe SAL font-style flags.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetColumnImage(column, image, flags)

Sets the main-grid column’s background image.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageImageA bitmap to assign, or null to clear the image. Other Image implementations leave the style unchanged.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style exists, even when the image is not a bitmap; otherwise, false.

Static member TblSetColumnImageFile(column, fileName, flags)

Loads a background image from a file and assigns it to the main-grid column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fileNameSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false, including caught image-loading errors.

Static member TblSetColumnImageResource(column, name, flags)

Loads a background image from a named SAL resource and assigns it to the main-grid column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
nameSalStringThe SAL resource name.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

A missing or non-bitmap resource returns false.

Static member TblSetColumnImageString(column, sImage, flags)

Loads a background image from bitmap binary data and assigns it to the main-grid column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
sImageSalStringThe bitmap bytes in a SAL binary string.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

Static member TblSetDelimiters(colDelimiter, rowDelimiter)

Sets the shared literal delimiters used for table text and clipboard transfers.

ParameterTypeDescription
colDelimiterSalStringThe string separating columns.
rowDelimiterSalStringThe string separating rows.

Returns: SalBoolean. True.

Static member TblSetRowBackColor(table, row, color)

Sets the table row’s explicit background color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
colorSalNumberThe SAL color value to translate.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetRowBackColor(table, row, color)

Sets the table row’s explicit background color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
colorColorThe new color.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetRowFont(table, row, font)

Sets the table row’s explicit font.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
fontFontThe font, or null to clear the explicit style font.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetRowFontName(table, row, fontName, fontSize, fontStyle)

Creates a font and assigns it to the table row.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontStyleSalNumberThe SAL font-style flags.

Returns: SalBoolean. True if the target style is available; otherwise, false.

Static member TblSetRowHeaderBackColor(table, row, color)

Sets the row header’s explicit background color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
colorSalNumberThe SAL color value to translate.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetRowHeaderBackColor(table, row, color)

Sets the row header’s explicit background color.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
colorColorThe new color.

Returns: SalBoolean. True if the target style exists and is changed; otherwise, false.

Static member TblSetRowImage(table, row, image, flags)

Sets the table row’s background image.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
imageImageA bitmap to assign, or null to clear the image. Other Image implementations leave the style unchanged.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style exists, even when the image is not a bitmap; otherwise, false.

Static member TblSetRowImageFile(table, row, fileName, flags)

Loads a background image from a file and assigns it to the table row.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
fileNameSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false, including caught image-loading errors.

Static member TblSetRowImageResource(table, row, resName, flags)

Loads a background image from a named SAL resource and assigns it to the table row.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
resNameSalStringThe SAL resource name.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

A missing or non-bitmap resource returns false.

Static member TblSetRowImageString(table, row, imageBlob, flags)

Loads a background image from bitmap binary data and assigns it to the table row.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
rowSalNumberThe SAL row context.
imageBlobSalStringThe bitmap bytes in a SAL binary string.
flagsTableWindowImageFlagsThe image alignment or FillAll option. FillAll uses best-fit sizing; combined or unsupported values use centered original-size layout.

Returns: SalBoolean. True if the target style accepts the operation; otherwise, false.

Static member TblSortRows(table, colID, flags)

Sorts main-grid rows by a SAL column and updates its sort glyph and row context.

ParameterTypeDescription
tableControlThe SAL table or table-form control.
colIDSalNumberThe SAL column identifier.
flagsTableWindowSortThe direction and comparison options; numeric and date columns add their respective comparison flags.

Returns: SalBoolean. False if the table or column cannot be resolved; otherwise, true.

The comparer sends SAM_SwapRows notifications for out-of-order comparisons.

Static member ToolboxCreate(parent, name, position, flags)

Creates a named XSal toolbox and attaches it to a form’s toolbar system.

ParameterTypeDescription
parentControlThe parent form.
nameSalStringThe toolbox template class name.
positionToolboxPositionsThe docking edge.
flagsToolboxFlagsThe creation flags; Visible sets initial visibility.

Returns: SalWindowHandle. The new toolbox handle, or a null handle when parent is not a form or creation returns no control.

Static member ToolboxDestroy(parent, name)

Disposes a named toolbox associated with a form.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

Returns: SalBoolean. True if the toolbox was found and processed; otherwise, false.

Static member ToolboxGetPosition(parent, name)

Gets a named toolbox’s docking edge.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

Returns: ToolboxPositions. The toolbox position, or None if the toolbox is absent or has no recognized toolbar parent.

Static member ToolboxHide(parent, name)

Hides a named toolbox associated with a form.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

Returns: SalBoolean. True if the toolbox was found and processed; otherwise, false.

Static member ToolboxHideAll(parent)

Hides all docked and owned floating toolboxes in a form’s initialized toolbar system.

ParameterTypeDescription
parentControlThe form containing the toolbar system.

Returns: SalBoolean. True if the toolbar system exists; false when it is absent.

Static member ToolboxIsVisible(parent, name)

Tests whether a named toolbox is visible.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

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

Static member ToolboxSetMetrics(value, type)

Sets a shared toolbar dimension or toolbox layout offset.

ParameterTypeDescription
valueSalNumberThe value in pixels.
typeToolbarMetricsThe metric to change; unknown values are ignored.

Returns: SalBoolean. True.

Static member ToolboxSetMetrics(type)

Retrieves a shared toolbar metric despite the setter-style method name.

ParameterTypeDescription
typeToolbarMetricsThe metric to read.

Returns: SalNumber. The value in pixels, or zero for an unknown metric.

Static member ToolboxSetPosition(parent, name, position)

Moves a named toolbox to a supported toolbar edge.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.
positionToolboxPositionsTop, Right, Bottom, or Left; other values do not move the toolbox.

Returns: SalBoolean. True if the toolbox exists; false when it is absent.

Static member ToolboxShow(parent, name)

Shows a named toolbox associated with a form.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

Returns: SalBoolean. True if the toolbox was found and processed; otherwise, false.

Static member ToolboxShowAll(parent)

Shows all docked and owned floating toolboxes in a form’s initialized toolbar system.

ParameterTypeDescription
parentControlThe form containing the toolbar system.

Returns: SalBoolean. True if the toolbar system exists; false when it is absent.

Static member UdvArrayDelete(Array, index)

Removes the element at the specified array index.

ParameterTypeDescription
ArraySalArrayThe SAL array to modify.
indexSalNumberThe element index.

Returns: SalBoolean. True if the operation completes; false for an IndexOutOfRangeException.

Static member UdvArrayInsert(Array, index)

Inserts an empty element at the specified array index.

ParameterTypeDescription
ArraySalArrayThe SAL array to modify.
indexSalNumberThe element index.

Returns: SalBoolean. True if the operation completes; false for an IndexOutOfRangeException.

Static member UdvArrayMove(Array, sourceIndex, targetIndex)

Inserts a copy of an array element at the target position and removes the original.

ParameterTypeDescription
ArraySalArrayThe array to modify.
sourceIndexSalNumberThe source element index.
targetIndexSalNumberThe insertion index before the original element is removed.

Returns: SalBoolean. True on success or when the indices are equal; false for an IndexOutOfRangeException.

Static member UdvArraySort(Array, fieldName, dataType, sortOrder)

Sorts a one-dimensional object array by a public field or property.

ParameterTypeDescription
ArraySalArrayThe array to sort.
fieldNameSalStringThe public field or property name on the element type.
dataTypeSalNumberReserved for compatibility; ignored.
sortOrderSalNumberThe sort order consumed by the member comparer.

Returns: SalBoolean. True when sorting completes or the array has fewer than two elements; false for a multidimensional array, empty member name, or missing member.

Static member UdvArraySwap(Array, index1, index2)

Exchanges two array elements.

ParameterTypeDescription
ArraySalArrayThe SAL array to modify.
index1SalNumberThe first element index.
index2SalNumberThe second element index.

Returns: SalBoolean. True if the exchange completes; false for an IndexOutOfRangeException.

Static member UdvClone(source, target)

Clones a functional-class object by binary serialization and deserialization.

ParameterTypeDescription
sourceSalFunctionalClassThe serializable object to copy.
target by referenceSalFunctionalClassReceives the deserialized copy.

Returns: SalBoolean. True if both operations succeed; false for a null source.

Static member UdvFromString(obj, source)

Deserializes a functional-class object from a BinaryFormatter binary string.

ParameterTypeDescription
obj by referenceSalFunctionalClassReceives the deserialized object.
sourceSalStringThe serialized binary data.

Returns: SalBoolean. False for null or empty binary data; true after deserialization.

The input must be trusted serialized application data. Deserialization and cast errors propagate.

Static member UdvToString(obj, target)

Serializes a functional-class object into a SAL binary string using BinaryFormatter.

ParameterTypeDescription
objSalFunctionalClassThe serializable object.
target by referenceSalStringReceives the serialized stream buffer.

Returns: SalBoolean. False for a null object; true after serialization.

Serialization exceptions propagate to the caller.

Static member ZipCloseArchive(zipFile)

Closes the archive and releases its allocated handle.

ParameterTypeDescription
zipFile by referenceSalNumberThe live archive handle; its numeric value is not reset after release.

Returns: SalBoolean. True if archive closure succeeds; false for a zero handle or a caught closure error.

The handle is released in the finally block even when archive closure fails. Do not reuse the released value.

Static member ZipCloseFile(zipFile)

Closes the current archive entry.

ParameterTypeDescription
zipFileSalNumberThe archive handle whose entry is open.

Returns: SalBoolean. True if closure succeeds; false for a caught archive error.

Static member ZipCreateFile(zipFile, fileName, date, comment, compressionLevel)

Creates a writable entry in an output ZIP archive.

ParameterTypeDescription
zipFileSalNumberThe open output-archive handle.
fileNameSalStringThe entry path within the archive.
dateSalDateTimeThe entry timestamp.
commentSalStringThe entry comment.
compressionLevelSalNumberThe compression level passed to the ZIP implementation.

Returns: SalBoolean. True if an entry is created; false for a zero handle or a caught error.

Static member ZipFindFile(zipFile, fileName)

Selects an archive entry by name.

ParameterTypeDescription
zipFileSalNumberThe open input-archive handle.
fileNameSalStringThe archive entry name to find.

Returns: SalBoolean. True if the entry is found; false for a zero handle, no match, or a caught archive error.

Static member ZipFindFirstFile(zipFile)

Selects the first entry and resets archive enumeration.

ParameterTypeDescription
zipFileSalNumberThe open input-archive handle.

Returns: SalBoolean. True if an entry exists; false for a zero handle, no matching entry, or a caught archive error.

Static member ZipFindNextFile(zipFile)

Advances to the next archive entry.

ParameterTypeDescription
zipFileSalNumberThe open input-archive handle.

Returns: SalBoolean. True if an entry exists; false for a zero handle, no matching entry, or a caught archive error.

Static member ZipGetFileInfo(zipFile, fileName, comment, date, compressedSize, uncompressedSize)

Retrieves metadata for the currently selected ZIP entry.

ParameterTypeDescription
zipFileSalNumberThe input-archive handle.
fileName by referenceSalStringReceives the entry name.
comment by referenceSalStringReceives the entry comment.
date by referenceSalDateTimeReceives the entry timestamp.
compressedSize by referenceSalNumberReceives the compressed size in bytes.
uncompressedSize by referenceSalNumberReceives the uncompressed size in bytes.

Returns: SalBoolean. True if metadata is retrieved; false for a zero handle, no selected entry, or a caught error.

Static member ZipOpenArchive(zipFile, fileName, mode)

Opens an existing ZIP archive for reading or creates a new archive for writing.

ParameterTypeDescription
zipFile by referenceSalNumberReceives an allocated archive handle on success.
fileNameSalStringThe archive path.
modeSalNumberOF_Read to open or OF_Write to create and overwrite the file.

Returns: SalBoolean. True if the archive handle is allocated; false for another mode or a caught archive error.

Requires the dynamically loaded SharpZipLib archive support. Close the archive handle when finished.

Static member ZipOpenFile(zipFile)

Opens the currently selected archive entry for reading.

ParameterTypeDescription
zipFileSalNumberThe input-archive handle with an entry selected.

Returns: SalBoolean. True if an entry stream is opened; otherwise, false.

Static member ZipRead(zipFile, content, count)

Reads bytes from the currently open archive entry.

ParameterTypeDescription
zipFileSalNumberThe input-archive handle.
content by referenceSalStringReceives the bytes read, or empty text when no bytes are read. A nonpositive count leaves it unchanged.
countSalNumberThe maximum number of bytes to read.

Returns: SalNumber. The number of bytes read, or zero for a nonpositive count or a caught read error.

Static member ZipWrite(zipFile, buffer, length)

Writes bytes to the current output ZIP entry.

ParameterTypeDescription
zipFileSalNumberThe open output-archive handle.
bufferSalStringThe SAL string whose binary buffer is written.
lengthSalNumberThe number of bytes to write from the beginning of the buffer.

Returns: SalBoolean. True if writing succeeds; false for a zero archive handle or a caught write error.

Static member ZipWrite(zipFile, buffer, length)

Writes bytes to the current output ZIP entry.

ParameterTypeDescription
zipFileSalNumberThe open output-archive handle.
bufferByte[]The source byte array.
lengthSalNumberThe number of bytes to write from the beginning of the buffer.

Returns: SalBoolean. True if writing succeeds; false for a zero archive handle or a caught write error.