Click or drag to resize

CommenceEditRowSetGetRow Method (Int32, CmcOptionFlags)

Returns an entire row's field values. Note that this method returns an array, whereas the native Commence method returns a delimited string.

Namespace:  Vovin.CmcLibNet.Database
Assembly:  Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntax
public override Object[] GetRow(
	int nRow,
	CmcOptionFlags flags = CmcOptionFlags.Default
)

Parameters

nRow
Type: SystemInt32
The (0-based) index of the row.
flags (Optional)
Type: Vovin.CmcLibNet.DatabaseCmcOptionFlags
Logical OR of following option flags: CmcOptionFlags.Canonical - return field value in canonical form.

Return Value

Type: Object
Object array of strings containing the row's values, null on error.

Implements

ICommenceEditRowSetGetRow(Int32, CmcOptionFlags)
IBaseRowSetGetRow(Int32, CmcOptionFlags)
IBaseRowSetGetRow(Int32, CmcOptionFlags)
Remarks
The return type is an object array, not a string array, even though Commence always returns values as string. That may seem counterintuitive. The reason for this is COM. I have not found a way to marshal a string array as variant. It is possible to marshal a string[], but accessing it will raise a type mismatch error in VBScript.
See Also