[Gambas-user] SimpleEval

Fabien Bodard gambas.fr at ...626...
Wed Dec 30 19:19:51 CET 2015


2015-12-30 17:37 GMT+01:00 Charlie <charlie at ...2793...>:
> Can I get your code to calculate something like
> 28*(5/2.3)
> If so how?
 Dim hEval As New SimpleEval


  hEval.Formula = "28*(5/2.3)"
  hEval.Execute

  If Not hEval.Error Then
    Print hEval.Value
  Else
    Print hEval.ErrorText
  Endif




More information about the User mailing list