Section A.5. Data Type Conversion

Table of contents:

A 5 Data Type Conversion

Asc Function

Returns the ASCII code for a character

AscW Function

Returns the Unicode code for a character

CBool Function

Converts a value to a Boolean

CByte Function

Converts a value to a Byte

CCur Function

Converts a value to Currency

CDate Function

Returns a Date data type

CDbl Function

Converts a value to a Double

Chr Function

Returns the character corresponding to a numeric ASCII code

ChrW Function

Returns the character corresponding to a particular Unicode value

CInt Function

Converts a value to an Integer

CLng Function

Converts a value to a Long

CSng Function

Converts a value to a Single

CStr Function

Converts a value to a String

DateSerial Function

Returns a date from valid year, month, and day values

DateValue Function

Returns a date from any valid date expression

Fix Function

Returns an integer portion of number

Hex Function

Returns a hexadecimal representation of a number

Int Function

Returns the integer portion of a number

Oct Function

Returns an octal representation of a number

TimeSerial Function

Returns a date from valid hour, minute, and second values

TimeValue Function

Returns a date value from any valid time expression

Part I: The Basics

Introduction

Program Structure

Data Types and Variables

Error Handling and Debugging

VBScript with Active Server Pages

Programming Outlook Forms

Windows Script Host 5.6

VBScript with Internet Explorer

Windows Script Components

Part II: Reference

Part III: Appendixes

Appendix A. Language Elements by Category

Appendix B. VBScript Constants

Appendix C. Operators

Appendix E. The Script Encoder



Vbscript in a Nutshell
VBScript in a Nutshell, 2nd Edition
ISBN: 0596004885
EAN: 2147483647
Year: 2003
Pages: 335

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