28 th Jun 2022 22:08:00
Hai Friend , Sign In
Chennai City
G. K.
Tamil Nadu Government Holiday List 2018 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 84894 28 444.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
IsArray Function IsArray Function
IsDate Function IsDate Function
IsEmpty Function IsEmpty Function
IsNull Function IsNull Function
IsNumeric Function IsNumeric Function
IsObject Function IsObject Function
VarType Function VarType Function
Type Conversion Functions Type Conv. Functions
VB Datatype Visual Basic Datatype
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
Description  Syntax  Return Datatype  Example  Migration

TypeName Function - Visual Basic 6.0 (VB 6.0)

Returns a string that provides Variant subtype information about a variable.
Parameter Description
varname Required. can be any variable.

TypeName Function's return value:
Constants Description
Byte Byte value
Integer Integer value
Long Long integer value
Single Single-precision floating-point value
Double Double-precision floating-point value
Currency Currency value
Decimal Decimal value
Date Date or time value

Character string value

Boolean Boolean value; True or False
Empty Uninitialized
Null No valid data
<object type> Actual type name of an object
Object Generic object
Unknown Unknown object type
Nothing Object variable that doesn't yet refer to an object instance
Error Error

Return Data type:

Dim vVar, vStr as String, vInt as Integer, vLng as Long, vSng as Single, vTxt as TextBox
Dim vArray(), vStrArray as String

Statement Result Remark
TypeName(vVar) Empty  
TypeName(abcd) Empty  
TypeName(vStr) String  
TypeName(vInt) Integer  
TypeName(vLng) Long  
TypeName(vSng) Single  
TypeName(vTxt) Nothing  
TypeName(Text1) TextBox  
TypeName(Text1.Text) String  
TypeName(vArray) Variant()  
TypeName(vStrArray) String  
TypeName("abcd") String  
TypeName(1) Integer  
TypeName(1.5) Double  
TypeName(5 > 10) Boolean  
TypeName(-1) Integer  
TypeName(null) Null  
Go to top

Migration from Visual Basic 6.0 (VB 6.0) to
  TypeName Function in VB Script (VBS)
  TypeName Function in JScript (JS)
  TypeName Function in ASP (Active Server Page)
  TypeName Function in PHP Script
  TypeName Function in MS-Access
  TypeName Function in MS SQL Server
  TypeName Function in Oracle
  TypeName Function in C Language
  TypeName Function in C++ Language
  TypeName Function in Foxpro
  TypeName Function in Fortran
  TypeName Function in MS Excel Sheet
Go to top

© 2021 Chennaiiq.com. All Rights Reserved.