![]() The lower bound for any dimension is always 0. Use the LBound function to find the lower limit of an array dimension. The UBound function is used with the LBound function to determine the size of an array. Use 1 for the first dimension, 2 for the second, and so on. Whole number indicating which dimension’s upper bound is returned. Name of the array variable follows standard variable naming conventions.ĭimension Optional. The UBound function syntax has these parts:Īrrayname Required. Returns the largest available subscript for the indicated dimension of an array. Use the UBound function to find the upper limit of an array dimension. The LBound function is used with the UBound function to determine the size of an array. The LBound function syntax has these parts:Īrrayname Name of the array variable follows standard variable naming conventions.ĭimension Whole number indicating which dimension’s lower bound is returned. Returns the smallest available subscript for the indicated dimension of an array. When working with arrays you can always use the LBOUND (low boundary) and UBOUND (Upper Boundary) Functions. Guess = CInt(InputBox(“Sorry! Try again.”,0)) MsgBox “Congratulations! You guessed it!” Guess = CInt(InputBox(“Enter your guess:”,0)) The following example illustrates the use of the Eval function: ![]() Note In Microsoft® JScript™, no confusion exists between assignment and comparison, because the assignment operator (=) is different from the comparison operator (=). The Eval method always uses the second interpretation, whereas the Execute statement always uses the first. If they do, result is True if they are not, result is False. The second interpretation is as an expression that tests if x and y have the same value. ![]() The first is as an assignment statement, where the value of y is assigned to x. In VBScript, x = y can be interpreted two ways. String containing any legal VBScript expression. If result is not specified, consider using the Execute statement instead.Įxpression Required. ![]() Variable to which return value assignment is made. The Eval function syntax has these parts: From Microsoft’s VB Script 5.1 Reference downloadable from their MSDN Website…Įvaluates an expression and returns the result. ![]()
0 Comments
Leave a Reply. |