Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SuperLib 3.50 - function var2char() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION VAR2CHAR()

  Short:
  ------
  VAR2CHAR() Converts any type variable to character type

  Returns:
  --------
  <cCharVal> => value as character

  Syntax:
  -------
  Var2char(expX)

  Description:
  ------------
  Converts variable in <expX> to type character

  Examples:
  ---------
   dtype := ctod("01/01/80")

   ntype := 128.45

   ltype := .t.

   VAR2CHAR(dtype)   // returns "01/01/80"

   VAR2CHAR(ntype)   // returns "128.45"

   VAR2CHAR(ltype)       //returns ".t."

  Warnings:
  ----------
  Numerics will be returned with a length of 10 minimum

  You may wish to trim this.

  Notes:
  -------
  Returns memo types as ""

  PREVIOUSLY ACCEPTED THE 'NAME' OF THE VARIABLE. NOW
  THE VALUE IS PASSED IN DIRECTLY.

  Source:
  -------
  S_VAR2.PRG


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson