vbscript – FileSystemObject.OpenTextFile
WSH/FSO – Fichiers
WSH/FSO – Fichiers
WSH/FSO – Fichiers
VBScript – Statements
VBScript – Statements
VBScript – Statements
VBScript – Formatage
FUNCTION: CDate( ) Implemented in version 1.0 You can determine the expression subtype by using the function VarType( ). CDate(Date) The CDate function converts any valid date and time expression to the variant of subtype Date. The default date output will be of the format: **/**/** The default time output will be of the format: **:**:** *M…
FUNCTION: CCur( ) Implemented in version 1.0 You can determine the expression subtype by using the function VarType( ). CCur(Number) The CCur function converts any number or numeric string to the variant of subtypeCurrency. Converts to currency values ranging from -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Code: <% anynumber=(12345) %> <% =CCur(any_number) %> Output: 12345 Code: <% any_numeric_string=(« 98765 ») %> <% =CCur(any_numeric_string)…
FUNCTION: CByte( ) Implemented in version 1.0 You can determine the expression subtype by using the function VarType( ). CByte(Number) The CByte function converts any number between 0 and 255 to the variant of subtypeByte. Code: <% anynumber=(9.876) %> <% =CByte(anynumber) %> Output: 10 Code: <% anynumber=(255) %> <% =CByte(anynumber) %> Output: 255
FUNCTION: CBool( ) Implemented in version 1.0 You can determine the expression subtype by using the function VarType( ). CBool(Number) The CBool function converts any number to the variant of subtype Boolean. The output for Boolean is either true or false. If the conversion is successful, the output will be true. If the conversion fails, the output…