[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VS_Cvt2Str()         Convert any data type to string                      NEW

Description:

  VS_Cvt2Str() will convert an expression of any data type to a
  character expression.

Syntax:     

  c_String = VS_Cvt2Str( SomeData, [l_OnOff] )

Pass:       

  SomeData is any valid data expression to be converted to a string.

  l_OnOff is a logical expression.  If .T., VS_Cvt2Str() will
  convert SomeData to either "ON" or "OFF" if SomeData is a
  logical expression.  If .F., VS_Cvt2Str() will convert SomeData to
  either "YES" or "NO" if SomeData is a logical expression.

Return:     

  c_String is a character expression containing the character
  representation of SomeData.

Notes:      


Example:    

  QOut("["+VS_Cvt2Str(.T.,.T.)+"]")   // Output: [ON]
  QOut("["+VS_Cvt2Str(.F.,.T.)+"]")   // Output: [OFF]
  QOut("["+VS_Cvt2Str(.T.,.F.)+"]")   // Output: [YES]
  QOut("["+VS_Cvt2Str(.F.,.F.)+"]")   // Output: [NO]
  QOut("["+VS_Cvt2Str(98)+"]")        // Output: [98]

Usage:      

See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson