Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

HB_VALTOSTR()

Converts any scalar type to a string.
---------------------------------------------------------------------------------

 Syntax

        HB_VALTOSTR( <xValue> ) --> cString  

 Arguments

        <xValue>   is any scalar argument.    

 Returns

        <cString>    A string representation of <xValue> using default 
                  conversions.

 Description

      HB_VALTOSTR can be used to convert any scalar value to a string.

 Examples

      ? HB_VALTOSTR( 4 )
      ? HB_VALTOSTR( "String" )
  

 Tests

      ? HB_VALTOSTR( 4 ) == "         4"
      ? HB_VALTOSTR( 4.0 / 2 ) == "         2.00"
      ? HB_VALTOSTR( "String" ) == "String"
      ? HB_VALTOSTR( CTOD( "01/01/2001" ) ) == "01/01/01"
      ? HB_VALTOSTR( NIL ) == "NIL"
      ? HB_VALTOSTR( .F. ) == ".F."
      ? HB_VALTOSTR( .T. ) == ".T."
  

Status

      Ready

 Compliance

      HB_VALTOSTR() is a Harbour enhancement.

 Files

      Library is rtl



See Also: STR()

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