Harbour Reference 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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30