vbscript-divide
OPERATOR: /
Implemented in version 1.0
/
The / operator divides two numbers and returns a floating-point number.
Code:
<% result = 25.0 / 4.975 %>
Output:
5.0251256281407
Code:
<% result = 25 / 5 %>
Output:
5
OPERATOR: /
Implemented in version 1.0
/
The / operator divides two numbers and returns a floating-point number.
Code:
<% result = 25.0 / 4.975 %>
Output:
5.0251256281407
Code:
<% result = 25 / 5 %>
Output:
5
WSH/FSO – Collections
VBScript – Chaînes
METHOD: FileSystemObject.BuildPath Implemented in version 2.0 [newfullpath = ]object.BuildPath(path, name) This method is used to append a name onto an existing path. The format of the new path is ‘existingpath\name’. Code: <% dim filesys, newfullpath set filesys=CreateObject(« Scripting.FileSystemObject ») newfullpath = filesys.BuildPath(c:\inetpub\wwwroot, « images ») %> Output: « c:\inetpub\wwwroot\images »
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…
Property: TextStream.AtEndOfLine Implemented in version 2.0 object.AtEndOfLine The AtEndOfLine property returns a Boolean value. If the file pointer is positioned immediately before the file’s end-of-line marker, the value is True. Otherwise, the value is False. The TextStream object must be open for reading or an error will occur when retreiving this property this method. The…
VBScript – Statements