Difference between revisions of "C Dec function"

From StealthBot Wiki Backup
Jump to: navigation, search
(C_Dec())
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:20, 1 December 2017

The C_Dec() Script Support Class function allows you to cast a value to a Visual Basic 6 Decimal variable type.

Development

The C_Dec function was added to StealthBot for version 2.7 by request of [[Imhotep[Nu]]].

Documentation

'// CDEC
'// Typecasts a VBS variant to the vbDecimal datatype
'//  By request from Imhotep[Nu]
Public Sub C_Dec(ByRef vToCast As Variant)
    vToCast = CDec(vToCast)
End Sub

Summary

Casts a value to the VB6 Decimal equivalent.

Syntax

Dim Value
Value = ... ' assign Value to something
C_Dec Value

Arguments

  • vToCast is the variable that will be casted. After the function completes, the variable will store the value of the argument as a Visual Basic 6 Decimal type. (VarType() will return 14).

Examples

See also