EVALUE |
"evalue" is used to evaluate a formula contained in a character string.
evalue ( string_to_evaluate [, exp_tok ] )
|
Element |
Description |
Restrictions |
|
string_to_evaluate |
Alphanumeric expression containing the calculation formula to be evaluated. |
None. |
|
exp_tok |
Reserved |
None. |
# Management of errors in evaluating a calculated stringLocal Char FORMULE(100), RESULTAT(100)Local Integer ERN # In the event of error, go to ERCALC, where ERN will be updated.Onerrgo ERCALC # Translation of key-wordsFORMULE = "date$$"ERN = 0 # the formula is evaluated and formatted as a string# vireblc deletes unnecessary spaces.RESULTAT = vireblc(format$("K:100X", evalue(FORMULE)), 2)
# If ERN is not null, ERCALC goes to# display of message: "Error in calculation: illegal character"If ERNErrbox "Error in calculation :"-errmes$(ERN)EndifEnd # Error management sub-programme: errn only has a meaning hereERCALCERN = errn
Resume
"evalue" is used to evaluate the content of a a character string containing a formula.
|
Error |
Description |
|
ERMODE (10) : |
·The formula is not a Char type. ·The 2nd argument is not a numerical type. |
|
|