Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

VALTYPE()

Retrieves the data type of an expression
---------------------------------------------------------------------------------

 Syntax

        VALTYPE( <xExp> ) --> <cReturnType>  

 Arguments

        <xExp>   is any valid expression.    

 Returns

        <cReturnType>   a character indicating the type of the passed 
                  expression.

 Description

      This function returns one character which represents the date type
      of the argument.

 Examples

      See Test
  

 Tests

      function Test()
         ? ValType( Array( 1 ) )  --> "A"
         ? ValType( {|| 1 + 1 } ) --> "B"
         ? ValType( "HARBOUR" )   --> "C"
         ? ValType( Date() )      --> "D"
         ? ValType( .T. )         --> "L"
         ? ValType( 1 )           --> "N"
         ? ValType( TBrowse() )   --> "O"
         ? ValType( NIL )         --> "U"
      return nil
  

Status

      Ready

 Compliance

      VALTYPE() is fully CA-Clipper compliant.

 Files

      Library is rtl



See Also: TYPE()

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