hb_ValToStr()

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()

Advertisements

3 responses to “hb_ValToStr()

  1. Pingback: Harbour All Functions – H | Viva Clipper !

  2. Pingback: Harbour String Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | 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 )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s