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.2 . 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(
                        WORKAREAP 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 that determines the length
     of the field.

 Description

     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->fields[fieldNum]
        may be as simple as assigning wa->fields[fieldNum].len 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: WORKAREA getValue()

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