Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>getvarlen()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson