Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Eval - function of language VBScript

Description:
Calculate expression and return value.

For the purposes of PROMOTIC system, it is more usefull to use the object: PmExpr.

Syntax:
Eval(expression As String) As Variant
Calling:
result = Eval(expression)
Parameters:
expression(String) string containing any expression in VBScript language syntax
Return Values:
The value of calculated expression.
Example:
VBScriptSelect and copy to clipboard

Dim RndNum, Guess
RndNum = Int(100 * Rnd(1) + 1)
Guess = CInt(InputBox("Enter your guess:", "", 0))

If Eval("Guess = RndNum") Then
  MsgBox "Congratulations! You guessed it!"
Else
  Guess = CInt(InputBox("Sorry! Try again.", "", 0))
End If
PROMOTIC 8.3.26 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice