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( STOD( "20010101" ) ) == "01/01/01" ? HB_VALTOSTR( NIL ) == "NIL" ? HB_VALTOSTR( .F. ) == ".F." ? HB_VALTOSTR( .T. ) == ".T."
Compliance
Harbour
Files
Library is rtl
Seealso
STR()
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour String Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !