Information

1.20 Information

Erl Property

 


 

 

See Erl Property under Section 1.17.

IsArray Function

 


 

 

See IsArray Function entry under Section 1.11.

IsDate Function

Microsoft.VisualBasic.Information


IsDate(expression)

 

expression required; any

Expression containing a date or time

Return Value

Boolean indicating whether the expression can be converted to a Date

Description

Determines if an expression is of type Date or can be converted to type Date

Returns True ifexpression is of type Date or can be converted to type Date. Uninitialized date variables also return True.

IsDBNull Function

Microsoft.VisualBasic.Information


IsDBNull(expression)

 

expression required; any expression

Any value retrieved from or to be written to a database

Return Value

Boolean

Description

Determines whether expression evaluates to DbNull (that is, is equal to System.DbNull.Value).

IsError Function

 


 

 

See IsError Function under Section 1.17.

IsNothing Function

Microsoft.VisualBasic.Information


IsNothing(expression)

 

expression required; any

Any variable or expression to be tested for a null object reference

Return Value

Boolean

Description

Determines whether expression evaluates to Nothing. The line:

If IsNothing(obj) Then

is equivalent to:

If obj Is Nothing Then

IsNumeric Function

Microsoft.VisualBasic.Information


IsNumeric(expression)

 

expression required; any expression

An expression to be converted to a number

Return Value

Boolean

Description

Determines whether expression can be evaluated as a number. If the expression passed to IsNumeric evaluates to a number, True is returned; otherwise, IsNumeric returns False.

IsReference Function

Microsoft.VisualBasic.Information


IsReference(expression)

 

expression required; any

Any potential reference type

Return Value

Boolean

Description

Returns True if expression contains reference type data, as opposed to value type data.

RGB Function

 


 

 

See RGB Function under Section 1.14.

Rem Statement

 


 
 
Rem comment
' comment

 

comment optional

A textual comment to place within the code

Description

Use the Rem statement or an apostrophe (') to place remarks within the code.

ScriptEngine Property

Microsoft.VisualBasic.Globals


ScriptEngine

 

Return Value

A String containing the value "VB"

Description

Indicates the programming language currently in use.

ScriptEngineBuildVersion Property

Microsoft.VisualBasic.Globals


ScriptEngineBuildVersion(  )

 

Return Value

An Integer containing the build number

Description

Returns the build number of the VB.NET language engine.

ScriptEngineMajorVersion Property

Microsoft.VisualBasic.Globals


ScriptEngineMajorVersion

 

Return Value

An Integer containing the major version number

Description

Indicates the major version (1, 2, etc.) of the programming language currently in use.

ScriptEngineMinorVersion Property

Microsoft.VisualBasic.Globals


ScriptEngineMinorVersion

 

Return Value

An Integer containing the minor version number

Description

Indicates the minor version (the number to the right of the decimal point) of the programming language currently in use.

SystemTypeName Function

Microsoft. VisualBasic.Information


SystemTypeName(vbname)

 

vbname required; String

The name of a VB.NET data type

Return Value

A String indicating the name of a CTS data type

Description

Returns the fully qualified type name of the CTS data type that corresponds to a particular Visual Basic data type.

TypeName Function

Microsoft.VisualBasic.Information


TypeName(varname)

 

varname required; String literal

Name of a variable

Return Value

String

Description

Returns a string giving data type information about varname. The possible return values are:

String returned

Variable contents

Boolean

8-bit True or False value type

Byte

8-bit binary value type

Char

16-bit character value type

Date

64-bit date and time value type

DBNull

Reference type indicating missing or nonexistent data

Decimal

96-bit fixed point numeric value type

Double

64-bit floating point numeric value type

Error

Error object

Integer

32-bit integer value type

Long

64-bit integer value type

Nothing

Object variable with no object currently assigned to it, uninitialized string, or undimensioned array

Object

Reference type pointing to an unspecialized object

Short

16-bit integer value type

Single

32-bit floating point numeric value type

String

Reference type pointing to a string of 16-bit characters

<objectclass>

Reference type pointing to a specialized object created from class <objectclass>

<structure>

A variable created from a structure or user-defined type named structure

<typename>( )

Dimensioned array

 

VarType Function

Microsoft.VisualBasic.Information


VarType(varname)

 

varname required; any

The name of a variable

Return Value

A member of the VariantType enumeration indicating the variable type

Description

Determines the data type of a variable.

VbTypeName Function

Microsoft. VisualBasic.Information


VbTypeName(urtname)

 

urtname required; String

The name of a CTS datatype

Return Value

A String containing the name of a VB.NET datatype

Description

Returns the name of the VB.NET datatype that corresponds to a particular CTS datatype.

 



VB. NET Language Pocket Reference
VB.NET Language Pocket Reference
ISBN: 0596004281
EAN: 2147483647
Year: 2002
Pages: 31

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net