Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_fldinfo() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_FLDINFO()

 DESCRIPTION

 C_FLDINFO() returns information about one specific field in a
 database file.  The string returned contains the field's type,
 width, and the number of decimals, if any.  This can be used as an
 alternative to Clipper's AFIELD() and DBSTRUCT() functions to
 quickly retrieve information for just one field.

 SYNTAX

 C_FLDINFO(field)

 PARAMETERS

 field (C/N) is the field to return the information.  The field
 argument can be specified using the database field name or the
 field number.

 RETURNS

 C_FLDINFO() returns the specified field's type, size, and decimals
 as a character string with each part of information separated by a
 comma ("N,10,2" = numeric 10.2).  The field types are as follows:
 C = character, N = numeric, D = date, L = logical, and M = memo.

 EXAMPLES

 use test      && Open file

 && Get information using field number
 ? c_fldinfo(1) --> C,25
 ? c_fldinfo(2) --> D,8
 ? c_fldinfo(3) --> L,1
 ? c_fldinfo(4) --> M,10

 && Get information using field name
 ? c_fldinfo("AMOUNT") --> N,8,2


See Also: C_FTOMACRO()

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