 | ICommenceDeleteRowSetGetRow 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
SyntaxObject[] GetRow(
int nRow,
CmcOptionFlags flags = CmcOptionFlags.Default
)
Function GetRow (
nRow As Integer,
Optional flags As CmcOptionFlags = CmcOptionFlags.Default
) As Object()
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:
ObjectObject array of strings containing the row's values,
null on error.
Implements
IBaseRowSetGetRow(Int32, CmcOptionFlags)
RemarksThe 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