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

 




[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