Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>fieldsize()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FIELDSIZE()

Syntax:     FIELDSIZE(<expN>)

Arguments:  <expN> denotes the field number to evaluate.

Returns:    A numeric value.
            The function returns the length of the field.

Usage:      FIELDSIZE() can determine the length (size) of fields of
            any data type.  It is then possible to create a memory
            variable of the same size.

Notes:      The function will return a 0 if the field number is invalid.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   length = 0

            * Determine the overall length of fields 3 to 5

            FOR i = 3 TO 5
               length = length + FIELDSIZE(i)
            NEXT i



See Also: FIELDDECI() FIELDTYPE()

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