[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
getVarLen()
Obtain the length of a column (field) value
------------------------------------------------------------------------------
Prototype
ERRCODE getVarLen(
AREAP wa,
USHORT fieldNum,
ULONGP length
)
Arguments
wa is a pointer to self.
fieldNum specifies the ordinal position of the column whose length
is to be obtained.
length is a pointer to an unsigned long integer that determines the
length of the field.
Description
getVarLen() retrieves the length of the specified column for use by the CA-Clipper
Runtime System.
Default Behavior
You must implement the default behavior of this method through a
subclass.
Implementation Notes
. In some cases, getting the length of the column
wa->lpFields[fieldNum] may be as simple as assigning
wa->lpFields[fieldNum].uiLen to length. In other cases, where
columns are of varying length, you may have to perform a physical
data read to correctly determine the length of the data.
Warning! length must point to sizeof(ULONG) bytes of allocated
memory.
Files Header file is Rdd.api.
See Also:
AREA
getValue()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson