Click or drag to resize

FoxArray.DeleteColumn Method

X#
Delete a column from a multi dimensional array.

Namespace:  XSharp
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 METHOD DeleteColumn(
	nColumn AS LONG
) AS FOXARRAY
Request Example View Source

Parameters

nColumn
Type: Long
1 based column number to delete

Return Value

Type: FoxArray
Remarks
When no columns are defined then nothing happens.
When an array has columns then the elements are deleted and shifted.
Assume a 4 x 4 array. When DeleteColumn() is called with column 2 then the elements 2,6,10 and 14 are deleted and the elements 3 & 4, 7 & 8, 11 & 12 and 15 & 16 are shifted to the left. New empty elements are inserted on locations 4,8,12 and 16.
See Also