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