Re: Re: TField; number of decimals


Posted by Wim Gijse on March 20, 2001 at 17:31:48:

In Reply to: Re: TField; number of decimals posted by webmaster Guido on March 18, 2001 at 19:31:41:

: : For a euroconversion checklist, I want to filter all the float fields, with 2 decimals. How do I get the number of decimals defined in the .dbf and .db files?
: : (Total more than 2000 files)
: : Thanks!
: --------------
: Do you want to obtain the names and specifications of all the fields in your 2000 tables that contain numbers with a decimal fraction ("floating point numbers")? This might be interesting for a larger group of visitors, I suppose. So, do you need a program that does something like this, in semi-code:
:
: for each table of my_list_with_2000_tables
: for each field of the_table
**************************************
if the_field_has_2_decimals then
**************************************
: ////if the_field is_float_field then
: add_to_fields_list(tablename+fieldname+fieldproperties)
:
: If yes, tell us in the forum here, and I'll look up some stuff. If no, please tell us what you mean by "filter all the float fields" :)

I do have problems to programm the added line.



Related Articles and Replies: