FT_XTOY

FT_XTOY()
 Convert from any data type to any other data type

 Syntax

      FT_XTOY( <xValueToConvert>, <cTypeToConvertTo> ;
               [, <lWantYesNo> ] ) -> xResult

 Arguments

     <xValueToConvert> is the value to convert.

     <cTypeToConvertTo> is the type of value to convert to
     ("C","D","L","N","A" or "B").

     <lWantYesNo> is a logical to signal if 'Y' or 'N' is to be returned
     if Converting a logical, otherwise '.T.' or '.F.' will be returned
     for logicals.

 Returns

     The original value converted to the new type.

 Description

     This function converts a value of character, date, numeric, logical,
     array or code block type to any of the other type.  While it is
     guaranteed to return a value of the correct type, that value may not
     be meaningful (i.e., converting from a code block returns an EMPTY()
     value of the desired type).

 Examples

     nNumericValue := FT_XTOY(cInputValue, "N")
     IF (FT_XTOY(nInputValue, "L"))

 Source: ANY2ANY.PRG

 Author: David Husnian

 

2 responses to “FT_XTOY

  1. Pingback: FT Functions | Viva Clipper !

  2. Pingback: FT Conversion | 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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.