PPJ Desktop API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Runtime.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
    • Controls
      • SalActiveX
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
        • BorderStyle
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
        • LineStyle
        • LineType
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTableWindow
        • CellType
        • FocusRowStyle
        • RowsSizingStyle
        • SalTableColumn
        • SalTableColumnCollection
        • SalTableRow
        • SalTableRowCollection
        • SalTableWindowBase
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
      • SalRibbonStatusBar
    • Interfaces
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalType
      • ISalAccessory
      • ISalMenu
      • ISalWindow
    • Internet
      • FtpEventArgs
      • FtpEventHandler
      • HttpEventArgs
      • HttpEventHandler
      • SalFtpClient
      • SalHttpClient
      • SalQuickFTP
      • SalQuickHTTP
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuColumn
      • SalMenuItem
      • SalMenuRow
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • QO
      • SalQuickHTML
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
      • SalQuickToolTipCheckBox
      • SalQuickToolTipChildTable
      • SalQuickToolTipComboBox
      • SalQuickToolTipDataField
      • SalQuickToolTipHScrollBar
      • SalQuickToolTipListBox
      • SalQuickToolTipMultilineField
      • SalQuickToolTipOptionButton
      • SalQuickToolTipPicture
      • SalQuickToolTipPushButton
      • SalQuickToolTipRadioButton
      • SalQuickToolTipTableWindow
      • SalQuickToolTipVScrollBar
      • SalToolTipManager
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Runtime.DDE.49
    • General
      • SalDDE
  • PPJ.Runtime.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisColorPalette
      • VisColorPaletteBase
      • VisColorPaletteDropDown
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisRichEdit
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Runtime.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSeparator
      • XSalSeparatorDoubleRaised
      • XSalSeparatorEtched
      • XSalSeparatorInvisible
      • XSalSeparatorSingleRaised
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Properties
  • Count
  • Dimensions
  • IsDynamic
  • IsEmpty
  • IsMultidimensional
  • IsSynchronized
  • Item(indices)
  • Length
  • SyncRoot
  • Methods
  • Add(value)
  • AddRange(collection)
  • Avg()
  • Clear()
  • CopyTo(array, index)
  • DimCount()
  • DimCount(nDim)
  • Fill(value, count)
  • Find(value, start)
  • FromNativeArray(array)
  • FromNativeArray(array, dbType)
  • GetArray(capacity)
  • GetElementType()
  • GetEnumerator()
  • GetLength(dim)
  • GetLowerBound(dim)
  • GetLowerBound(dim, lbound)
  • GetUpperBound(dim)
  • GetUpperBound(dim, ubound)
  • Insert(index)
  • MakeDynamic()
  • Max()
  • Min()
  • QueryBounds(min, max)
  • Remove(index)
  • Reset()
  • SetBounds(lower, upper)
  • SetLength(dim, length)
  • SetLowerBound(dim, bound)
  • SetUpperBound(dim, bound)
  • Sort(index, count, comparer)
  • Sort(comparer)
  • Sum()
  • ToNativeArray()
  • Inherited By
  • Implements
  1. PPJ.Runtime.49
  2. Types

SalArray

PPJ.Runtime.SalArray

PreviousTypesNextSalArray<T>

Last updated 2 years ago

Namespace: PPJ.Runtime

Assembly: PPJ.Runtime.49 (4.9.0.0)

Dynamic array class. This class replicates SAL dynamic arrays. It must be declared as an inner class of the class that should be used as the type of the elements of the dynamic array.

public class SalArray : IList, ICollection, IEnumerable, IXmlSerializable, ISalType
Public Class SalArray
    Inherits IList
    Implements ICollection, IEnumerable, IXmlSerializable, ISalType

Properties

Count

: Number of array elements

Dimensions

: Returns the number of dimensions.

IsDynamic

: Returns true if the array is dynamic.

IsEmpty

: Returns true if the array is empty.

IsMultidimensional

Methods

Appends one item to the array.

Parameter
Type
Description

value

Appends the collection of items to the array.

Parameter
Type
Description

collection

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

Clears a dynamic array

CopyTo

Parameter
Type
Description

array

index

Returns the number of dimensions in an array.

Parameter
Type
Description

nDim

Fills an array with the specified value.

Parameter
Type
Description

value

count

Finds the value in the array. This is allowed only for single-dimension arrays.

Parameter
Type
Description

value

start

Creates a SalArray from a native array. The type is inferred from the array.

Parameter
Type
Description

array

Native array to convert to a SalArray.

Creates a SalArray from a native array of the specified dbType .

Parameter
Type
Description

array

Native array to convert to a SalArray.

dbType

Type of the elements in the source array .

Returns the wrapped native array and ensures that the requested element is created for dynamic arrays.

Parameter
Type
Description

capacity

Returns the type of the array elements

IEnumerator implementation to support the foreach statement.

Returns the number of items in the array

Parameter
Type
Description

dim

dimension, first = 1

Returns the lower bound of the array.

Parameter
Type
Description

dim

Parameter
Type
Description

dim

lbound

Returns the upper bound of an array.

Parameter
Type
Description

dim

Parameter
Type
Description

dim

ubound

Inserts an item at the position. This is allowed only for single-dimension arrays.

Parameter
Type
Description

index

Makes the array dynamic.

Returns the maximum value in an array of numbers.

Returns the minimum value in an array of numbers.

Parameter
Type
Description

min

max

Removes the item at the index. This is allowed only for single-dimension arrays.

Parameter
Type
Description

index

Resets a dynamic array

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

Parameter
Type
Description

lower

upper

Changes the number of items in the array

Parameter
Type
Description

dim

dimension, first = 1

length

Changes the lower bound of the array

Parameter
Type
Description

dim

bound

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

Parameter
Type
Description

dim

bound

Sorts the items in the array.

Parameter
Type
Description

index

count

comparer

Sorts the items in the array.

Parameter
Type
Description

comparer

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

Converts to an array of native types.

Inherited By

Name
Description

Dynamic array generic class. This class replicates SAL dynamic arrays. It can be used without being declared as an inner class by using the new generics syntax.

Implements

Name
Description

Common base interface for Sal types.

: Returns true if the array is an MD array.

IsSynchronized

: IsSynchronized

Item(indices)

: Get/Set functions used to access the array. The implementation classes will call these methods from their indexers.

Length

: Returns the total number of items in the array. For MD arrays returns the number of items in the first dimension.

SyncRoot

: SynchRoot

Add(value)

Returns: .

AddRange(collection)

Avg()

Returns: . nAvg

Clear()

CopyTo(array, index)

DimCount()

Returns: .

DimCount(nDim)

Returns: .

Fill(value, count)

Returns: .

Find(value, start)

Returns: .

FromNativeArray(array)

Returns: .

FromNativeArray(array, dbType)

Returns: .

GetArray(capacity)

Returns: .

GetElementType()

Returns: .

GetEnumerator()

Returns: .

GetLength(dim)

Returns: .

GetLowerBound(dim)

Returns: .

GetLowerBound(dim, lbound)

Returns: .

GetUpperBound(dim)

Returns: .

GetUpperBound(dim, ubound)

Returns: .

Insert(index)

MakeDynamic()

Max()

Returns: .

Min()

Returns: .

QueryBounds(min, max)

Returns: .

Remove(index)

Reset()

SetBounds(lower, upper)

Returns: .

SetLength(dim, length)

SetLowerBound(dim, bound)

Returns: .

SetUpperBound(dim, bound)

Returns: .

Sort(index, count, comparer)

Sort(comparer)

Sum()

Returns: .

ToNativeArray()

Returns: .

Boolean
Boolean
Object
SalNumber
Object
Int32
SalNumber
SalNumber
Boolean
Boolean
Int32
SalArray
SalArray
Array
Type
IEnumerator
Int32
SalNumber
Boolean
SalNumber
Boolean
SalNumber
SalNumber
SalNumber
Boolean
Boolean
Boolean
SalNumber
Object
Object
IEnumerable
Array
Int32
SalNumber&
Object
Int32
Object
Int32
Array
Array
DbType
Int32[]
Int32
Int32
Int32
SalNumber&
Int32
Int32
SalNumber&
Int32
SalNumber&
SalNumber&
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
IComparer
IComparer
SalArray<T>
ISalType
Int32
SalNumber
Boolean
Boolean