VB.NET Abs Example – Code Sample Syntax

VB.NET Abs Example – Code Sample Syntax Purpose: – Illustrates using VB.NET Abs Code Example. View Other VB.NET Math Function Source Code Examples Purpose: Returns the absolute value for the data type that was passed in. Syntax: Abs(expression) Parameters Description expression 1. decimal – returns decimal number 2. double – returns double-percision floating point number 3. int16 –... [Read More...]

VB.NET CUShort Example – Code Sample Syntax

VB.NET CUShort Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CUShort Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts numbers into UShort data type – UShort data type is a 16-bit (2-byte) unsigned integer that can hold values from 0 to 65,535 (unsigned). Rounds fractions to whole numbers Syntax: CUShort(expression) Parameters Description expression 0... [Read More...]

VB.NET CULng Example – Code Sample Syntax

VB.NET CULng Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CULng Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts numbers into ULong data type – ULong data type is a 64-bit (8-byte) unsigned integer that can hold values from 0 to 18,446,744,073,709,551,615 (unsigned). Rounds fractions to whole numbers Syntax: CULng(expression) Parameters Description expression 0... [Read More...]

VB.NET CUInt Example – Code Sample Syntax

VB.NET CUInt Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CUInt Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts numbers into UInteger data type – UInteger data type is a 32-bit (4-byte) unsigned integer that can hold values from 0 to about 4 billion (4,294,967,295). Rounds fractions to whole numbers Syntax: CUInt(expression) Parameters Description expression 0... [Read More...]

VB.NET CStr Example – Code Sample Syntax

VB.NET CStr Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CStr Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts boolean, date, and numeric data types into String data type Syntax: CStr(expression) Parameters Description expression boolean, date, and numeric data types Result Data Type Description String 1. If boolean, returns string “True”... [Read More...]

VB.NET CSng Example – Code Sample Syntax

VB.NET CSng Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CSng Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts positive and negative numbers into Single data type Syntax: CSng(expression) Parameters Description expression -3.402823E+38 through -1.401298E-45 for negative values; 1.401298E-45 through 3.402823E+38 for positive values Result Data... [Read More...]

VB.NET CShort Example – Code Sample Syntax

VB.NET CShort Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CShort Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts positive and negative numbers into Short data type Syntax: CShort(expression) Parameters Description expression -32,768 through 32,767; fractional parts are rounded Result Data Type Description Short signed 16-bit (2-byte) integers Step... [Read More...]

VB.NET CSByte Example – Code Sample Syntax

VB.NET CSByte Example – Code Sample Syntax Abstract: – Illustrates using VB.NET CSByte Code Example. View Other VB.NET Conversion Function Source Code Examples Purpose: Converts positive and negative numbers into SByte data type Syntax: CSByte(expression) Parameters Description expression -128 through 127; fractional parts are rounded. Result Data Type Description SByte Signed Byte Step 1: Click Visual Basic... [Read More...]

VB.NET CObj Example – Code Sample Syntax

VB.NET CObj Example – Code Sample Syntax Purpose: – Illustrates using VB.NET CObj Code Example. View Other VB.NET Conversion Function Source Code Examples Description: Converts any valid expression into Object data type Syntax: CObj(expression) Parameters Description expression any valid expression Result Data Type Description object returns input as an object Step 1: Click Visual Basic to Cut-n-paste code into... [Read More...]

VB.NET CLng Example – Code Sample Syntax

VB.NET CLng Example – Code Sample Syntax Purpose: – Illustrates using VB.NET CLng Code Example. View Other VB.NET Conversion Function Source Code Examples Description: Converts positive and negative numbers into Long data type Syntax: CLng(expression) Parameters Description expression -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807; fractional parts are rounded. Result Data Type Description Long returns... [Read More...]

VB.NET CInt Example – Code Sample Syntax

VB.NET CInt Example – Code Sample Syntax Purpose: – Illustrates using VB.NET CInt Code Example. View Other VB.NET Conversion Function Source Code Examples Syntax: CInt(expression) – Converts positive and negative numbers into integer data type. Parameters Description expression -2,147,483,648 through 2,147,483,647; fractional parts are rounded Step 1: Click Visual Basic to Cut-n-paste code into clsCInt.vb Public... [Read More...]

« Previous PageNext Page »