PPJ Web API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Web.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
      • stdole_Font
      • stdole_Picture
      • stdole_StdFont
      • stdole_StdPicture
    • Controls
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTimer
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
    • Interfaces
      • ISalType
      • ISalAccessory
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalListItem
      • ISalMenu
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalWindow
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuItem
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Web.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveComboBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Web.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalString()
  • SalString(x)
  • SalString(chars)
  • SalString(chars, index, length)
  • SalString(blob)
  • SalString(blob, index, length)
  • Fields
  • Properties
  • IsBlob
  • IsEmpty
  • IsNull
  • Item(index)
  • Length
  • Value
  • Methods
  • Clone()
  • Compare(x, y)
  • CompareTo(obj)
  • CompareTo(x)
  • Compress()
  • Compress(sRet)
  • Concat(x, y)
  • FirstChar(target, charCode)
  • FreeHandle(handle)
  • FromHandle(handle, free)
  • FromHandleOnce(handle)
  • FromHex(hex)
  • GetBlob()
  • GetBufferLength()
  • IsValidCurrency(precision, scale)
  • IsValidCurrency(precision, scale, provider)
  • IsValidCurrency(precision, scale, format, provider)
  • IsValidDateTime()
  • IsValidDateTime(provider)
  • IsValidDateTime(format, provider)
  • IsValidDecimal(precision, scale)
  • IsValidDecimal(precision, scale, provider)
  • IsValidDecimal(precision, scale, format, provider)
  • IsValidIdentifierName()
  • IsValidInteger()
  • IsValidInteger(format)
  • IsValidNumber()
  • IsValidNumber(provider)
  • IsValidNumber(format, provider)
  • Left(length)
  • Left(length, target)
  • Lop(target)
  • Mid(pos, length)
  • Mid(pos, length, target)
  • Repeat(times)
  • Repeat(times, target)
  • Replace(startPos, length, replace)
  • Replace(startPos, length, replace, target)
  • Right(length)
  • Right(length, target)
  • Scan(pattern)
  • SetBufferLength(length)
  • SetBufferLength(target, length)
  • ToDate()
  • ToDate(format)
  • ToDate(format, provider)
  • ToHandle()
  • ToHex()
  • Tokenize(startDel, endDel)
  • Tokenize(startDel, endDel, target)
  • ToLower()
  • ToLower(target)
  • ToNumber()
  • ToNumber(format)
  • ToNumber(format, provider)
  • ToProper()
  • ToProper(target)
  • ToUpper()
  • ToUpper(target)
  • Trim()
  • Trim(target)
  • Uncompress()
  • Uncompress(target)
  • Inherited By
  • Implements
  1. PPJ.Web.49
  2. Types

SalString

PPJ.Runtime.SalString

PreviousSalResourceNextSalStringContext

Last updated 2 years ago

Namespace: PPJ.Runtime

Assembly: PPJ.Web.49 (4.9.0.0)

SAL String basic type. It wraps .NET String class. SalString objects are automatically cast to and from .NET String type.

public class SalString : IComparable, IConvertible, IFormattable, INullable, ISalType, IXmlSerializable, IWisejSerializable
Public Class SalString
    Inherits IComparable
    Implements IConvertible, IFormattable, INullable, ISalType, IXmlSerializable, IWisejSerializable

Constructors

SalString()

Constructs a new SalString object containing an empty string.

SalString(x)

Constructs a new SalString object.

Name
Type
Description

x

SalString(chars)

Constructs a new SalString object.

Name
Type
Description

chars

SalString(chars, index, length)

Constructs a new SalString object.

Name
Type
Description

chars

index

length

Constructs a new SalString object.

Name
Type
Description

blob

Constructs a new SalString object.

Name
Type
Description

blob

index

length

Fields

Name
Type
Description

Empty

empty value

Null

null value

NullBlob

null value for blobs

Properties

Methods

Returns a copy of this string.

Compares two strings lexicographically to match SAL comparison rules. SAL apparently uses _xcmp().

Parameter
Type
Description

x

y

Compare to an object

Parameter
Type
Description

obj

Compare to a SalString

Parameter
Type
Description

x

Compresses the string.

Parameter
Type
Description

sRet

  • operator for concatenating two SalString objects.

Parameter
Type
Description

x

y

Parameter
Type
Description

target

charCode

Frees a string handle created using SalHStringTonumber.

Parameter
Type
Description

handle

String handle to release.

Converts a number (string handle) to a string.

Parameter
Type
Description

handle

The handle to convert back to a string.

free

Indicates that the handle should be released. The default is false.

Converts a number (string handle) to a string and releases the handle immediately.

Parameter
Type
Description

handle

The handle to convert back to a string.

Decodes a hexadecimal string into a string.

Parameter
Type
Description

hex

Returns the string content as an array of bytes.

Returns the current buffer length of the string.

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

Parameter
Type
Description

precision

scale

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

Parameter
Type
Description

precision

scale

provider

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

Parameter
Type
Description

precision

scale

format

provider

Verifies that an entire character string represents a valid date/time value.

Verifies that an entire character string represents a valid date/time value.

Parameter
Type
Description

provider

Verifies that an entire character string represents a valid date/time value.

Parameter
Type
Description

format

provider

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

Parameter
Type
Description

precision

The number of digits to display.

scale

The number of digits to the right of the decimal point.

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

Parameter
Type
Description

precision

The number of digits to display.

scale

The number of digits to the right of the decimal point.

provider

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

Parameter
Type
Description

precision

The number of digits to display.

scale

The number of digits to the right of the decimal point.

format

provider

Returns TRUE if the string is a valid identifier.

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

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

Parameter
Type
Description

format

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

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

Parameter
Type
Description

provider

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

Parameter
Type
Description

format

provider

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

Parameter
Type
Description

length

Parameter
Type
Description

length

target

Parameter
Type
Description

target

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

Parameter
Type
Description

pos

length

Parameter
Type
Description

pos

length

target

Concatenates a string with itself a specified number of times.

Parameter
Type
Description

times

Parameter
Type
Description

times

target

Replaces characters in one string with characters from another string.

Parameter
Type
Description

startPos

length

replace

Parameter
Type
Description

startPos

length

replace

target

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

Parameter
Type
Description

length

Parameter
Type
Description

length

target

Searches for and returns the offset of a specified substring. Uses wild card chars: % and _

Parameter
Type
Description

pattern

Sets the buffer string length to the length.

Parameter
Type
Description

length

Parameter
Type
Description

target

length

Converts a string to a date/time value.

Converts a string to a date/time value.

Parameter
Type
Description

format

Converts a string to a date/time value.

Parameter
Type
Description

format

provider

Converts a string to a number (handle) so it can be passed in a message using SalHStringTonumber. The handle is created using a GCHandle reference to this string. Therefore once the strong reference is created, this string will never be garbage collected until the application exits.

Encodes the string buffer to a hexadecimal string.

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

Parameter
Type
Description

startDel

endDel

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

Parameter
Type
Description

startDel

endDel

target

Converts a string to lowercase.

Parameter
Type
Description

target

Converts a string to a number.

Converts a string to a number.

Parameter
Type
Description

format

Converts a string to a number.

Parameter
Type
Description

format

provider

Converts a string to a proper name. In a proper name, the first letter of each word is uppercase; the remaining letters are lowercase.

Parameter
Type
Description

target

Converts a string to uppercase.

Parameter
Type
Description

target

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

Parameter
Type
Description

target

Decompresses the string.

Parameter
Type
Description

target

Inherited By

Name
Description

Special SalString extension to support SalContextCurrent().

Implements

Name
Description

Common base interface for Sal types.

SalString(blob)

SalString(blob, index, length)

IsBlob

: Blob flag.

IsEmpty

: Checks if this SalString object contains a null value or is empty.

IsNull

: Checks if this SalString object contains a null value.

Item(index)

: Character indexer

Length

: Returns the string's length up to the terminator char.

Value

: Returns the inner string value

Clone()

Returns: .

Compare(x, y)

Returns: .

CompareTo(obj)

Returns: .

CompareTo(x)

Returns: .

Compress()

Returns: .

Compress(sRet)

Returns: .

Concat(x, y)

Returns: .

FirstChar(target, charCode)

Returns: .

FreeHandle(handle)

FromHandle(handle, free)

Returns: .

FromHandleOnce(handle)

Returns: .

FromHex(hex)

Returns: .

GetBlob()

Returns: .

GetBufferLength()

Returns: . nLength

IsValidCurrency(precision, scale)

Returns: .

IsValidCurrency(precision, scale, provider)

Returns: .

IsValidCurrency(precision, scale, format, provider)

Returns: .

IsValidDateTime()

Returns: .

IsValidDateTime(provider)

Returns: .

IsValidDateTime(format, provider)

Returns: .

IsValidDecimal(precision, scale)

Returns: . bOk

IsValidDecimal(precision, scale, provider)

Returns: . bOk

IsValidDecimal(precision, scale, format, provider)

Returns: . bOk

IsValidIdentifierName()

Returns: .

IsValidInteger()

Returns: .

IsValidInteger(format)

Returns: .

IsValidNumber()

Returns: . bOk

IsValidNumber(provider)

Returns: .

IsValidNumber(format, provider)

Returns: .

Left(length)

Returns: .

Left(length, target)

Returns: .

Lop(target)

Returns: .

Mid(pos, length)

Returns: .

Mid(pos, length, target)

Returns: .

Repeat(times)

Returns: .

Repeat(times, target)

Returns: .

Replace(startPos, length, replace)

Returns: .

Replace(startPos, length, replace, target)

Returns: .

Right(length)

Returns: .

Right(length, target)

Returns: .

Scan(pattern)

Returns: .

SetBufferLength(length)

Returns: .

SetBufferLength(target, length)

Returns: .

ToDate()

Returns: .

ToDate(format)

Returns: .

ToDate(format, provider)

Returns: .

ToHandle()

Returns: .

ToHex()

Returns: .

Tokenize(startDel, endDel)

Returns: .

Tokenize(startDel, endDel, target)

Returns: .

ToLower()

Returns: .

ToLower(target)

Returns: .

ToNumber()

Returns: .

ToNumber(format)

Returns: .

ToNumber(format, provider)

Returns: .

ToProper()

Returns: .

ToProper(target)

Returns: .

ToUpper()

Returns: .

ToUpper(target)

Returns: .

Trim()

Returns: .

Trim(target)

Returns: .

Uncompress()

Returns: .

Uncompress(target)

Returns: .

Boolean
Boolean
Boolean
Char
SalNumber
String
SalString
Int32
Int32
Int32
SalString
Boolean
SalString
Boolean
SalString
SalString
SalString
Byte[]
SalNumber
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
SalString
SalNumber
SalNumber
SalString
SalNumber
SalString
SalNumber
SalString
SalNumber
SalString
SalNumber
SalNumber
SalString
Boolean
SalDateTime
SalDateTime
SalDateTime
IntPtr
String
SalArray<SalString>
SalNumber
SalString
SalNumber
SalNumber
SalNumber
SalNumber
SalString
SalNumber
SalString
SalNumber
SalString
SalNumber
SalString
Boolean
String
Char[]
Char[]
Int32
Int32
Byte[]
Byte[]
Int32
Int32
SalString
SalString
SalString
SalString
SalString
Object
SalString
SalString&
SalString
SalString
SalString&
SalNumber&
IntPtr
IntPtr
Boolean
IntPtr
String
Int32
Int32
Int32
Int32
IFormatProvider
Int32
Int32
String
IFormatProvider
IFormatProvider
String
IFormatProvider
Int32
Int32
Int32
Int32
IFormatProvider
Int32
Int32
String
IFormatProvider
String
IFormatProvider
String
IFormatProvider
Int32
Int32
SalString&
SalString&
Int32
Int32
Int32
Int32
SalString&
Int32
Int32
SalString&
Int32
Int32
String
Int32
Int32
String
SalString&
Int32
Int32
SalString&
String
Int32
SalString&
Int32
String
String
IFormatProvider
String
String
String
String
SalArray<SalString>
SalString&
String
String
IFormatProvider
SalString&
SalString&
SalString&
SalString&
SalStringContext
ISalType