FT_FDEC

FT_FDEC()
 Return the number of decimals in a numeric (type "N") field.

 Syntax

      FT_FDEC( <xVar> ) -> nDec

 Arguments

     <xVar> is either a field name or ordinal .DBF position.

 Returns

     the number of decimal places in a numeric field.  -1 if field is
     not type "N", or if other error.

 Description

     FT_FDEC() reports the number of decimal places in a numeric field.

 Examples

     nDec:= FT_FDEC( "unit_prc" )
     nDec:= FT_FDEC( 2 )
     - or -
     nNum:= FT_FNUM( "unit_prc" )
     nDec:= FT_FDEC( nNum )

 Source: FIELD.PRG

See Also: FT_FPLACE() FT_FVALLEN() FT_FLEN() FT_FNUM() FT_FTYPE() FT_FVAL()


		
Advertisements

One response to “FT_FDEC

  1. Pingback: FT Database | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s