Click or drag to resize

FoxArray Class

X#
Internal type that implements the FoxPro Compatible ARRAY type.
This type has methods and properties that normally are never directly called from user code.
Inheritance Hierarchy
Object
  Array OfUsual
    Array
      FoxArray

Namespace:  XSharp
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.21
Syntax
 SEALED CLASS FoxArray INHERIT ARRAY, 
	 IMPLEMENTS IIndexer
Request Example View Source

The FoxArray type exposes the following members.

Constructors
  NameDescription
Public methodFoxArray
Create an empty array
Public methodFoxArray(Object)
Create an array and fill it with elements from an existing .Net array of objects. Note that the objects must be of the right type.
Public methodFoxArray(DWord)
Create an array with a certain capacity.
Public methodFoxArray(DWord, DWord)
Initializes a new instance of the FoxArray class
Top
Properties
  NameDescription
Public propertyColumns
Public propertyCount (Inherited from Array OfT.)
Public propertyDefaultValue (Overrides DefaultValue.)
Public propertyIsEmpty (Inherited from Array OfT.)
Public propertyItemLong
Get/Set array elements with a ZERO based array index.
(Overrides ItemLong.)
Public propertyItemLong
Get/Set array elements with a ZERO based array index.
(Overrides ItemLong.)
Public propertyItemLong, String
Get/Set array elements with a ZERO based array index.
(Inherited from Array OfT.)
Public propertyItemLong, Long
Get/Set array elements with a ZERO based array index.
(Overrides ItemLong, Long.)
Public propertyLength
Length of the array.
(Inherited from Array OfT.)
Public propertyLocked (Inherited from Array OfT.)
Public propertyMultiDimensional
Public propertyRows
Top
Methods
  NameDescription
Public methodDeleteColumn
Delete a column from a multi dimensional array.
Public methodDeleteRow
Delete a row from a multi dimensional array.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Inherited from Array.)
Public methodInsertColumn
Insert a column into a multi dimensional array.
Public methodInsertRow
Insert a row into a multi dimensional array.
Public methodReDim
Public methodToString
Returns a string that represents the current object.
(Inherited from Array OfT.)
Top
Explicit Interface Implementations
Remarks
FoxPro arrays can be one dimensional or two dimensional. Two dimensional arrays are implemented as a projection on top of a one dimensional array.
So a two dimensional array of 4 x 3 elements will be implemented as an array of 12 elements. The elements 1-3 represent row 1, 4-6 row 2 etc.
Remarks
The indexer in this type is ZERO based, however in your PRG code you can use ONE based array indices. When the compiler detects an index operation to a class that implements this interface then the compiler will automatically adjust the indices (by subtracting one) unless the /az compiler option is enabled.
See Also