VBScript Reference Manual for InduSoft Web Studio
VBScript Reference Manual for InduSoft Web Studio
VBScript Reference Manual for InduSoft Web Studio
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />
IsNumeric<br />
Description Returns a Boolean value indicating whether an expression can be evaluated as a number.<br />
Usage boolVal = IsNumeric(expression)<br />
Arguments expression<br />
The expression argument can be any valid expression.<br />
Return A Boolean value<br />
Remarks IsNumeric returns True if the entire expression is recognized as a number; otherwise, it returns<br />
False. IsNumeric returns False if expression is a date expression, since it is not considered a<br />
numeric expression.<br />
See Also IsArray, IsDate, IsEmpty, IsNull, IsObject, VarType<br />
Example The following example uses the IsNumeric function to determine whether a variable can be<br />
evaluated as a number:<br />
Dim MyVar, MyCheck<br />
MyVar = 53 ' Assign a value.<br />
MyCheck = IsNumeric(MyVar) ' Returns True.<br />
MyVar = "459.95" ' Assign a value.<br />
MyCheck = IsNumeric(MyVar) ' Returns True.<br />
MyVar = "45 Help" ' Assign a value.<br />
MyCheck = IsNumeric(MyVar) ' Returns False.<br />
IsObject<br />
Function Returns a Boolean value indicating whether an expression references a valid Automation object.<br />
Usage boolVal = IsObject(expression)<br />
Arguments expression<br />
The expression argument can be any expression.<br />
Remarks IsObject returns True if expression is a variable of Object subtype or a user-defined object;<br />
otherwise, it returns False.<br />
See Also IsArray, IsDate, IsEmpty, IsNull, IsNumeric, VarType<br />
Example The following example uses the IsObject function to determine if an identifier represents an<br />
object variable:<br />
Dim MyInt, MyCheck, MyObject<br />
Set MyObject = Me<br />
MyCheck = IsObject(MyObject) ' Returns True.<br />
MyCheck = IsObject(MyInt) ' Returns False.<br />
Join<br />
Description Returns a string created by joining a number of substrings contained in an array<br />
Usage strVal = Join(list[, delimiter])<br />
Arguments list<br />
Required. One-dimensional array containing substrings to be joined.<br />
delimiter<br />
Optional. String character used to separate the substrings in the returned string. If omitted,<br />
the space character (" ") is used.<br />
Return A String<br />
Remarks If delimiter is a zero-length string, all items in the list are concatenated with no delimiters. This<br />
function is not to be confused with the SQL Join function<br />
See Also Split<br />
Example The following example uses the Join function to join the substrings of MyArray:<br />
Dim MyString<br />
Dim MyArray(3)<br />
MyArray(0) = "Mr."<br />
MyArray(1) = "John "<br />
MyArray(2) = "Doe "<br />
MyArray(3) = "III"<br />
MyString = Join(MyArray) ' MyString contains "Mr. John Doe III".<br />
144 <strong>InduSoft</strong>, Ltd.