Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Eval - function of language VBScript

Description:
Calculated expression and return value.
Syntax:
Eval(expression As String) As Variant
Calling:
result = Eval(expression)
Parameters:
expression(String) string containing any expression in VBScript language syntax
Return Values:
Value of calculated expression.
Example:
Dim Guess, RndNum
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
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice