i have the next lines to make an gb.eval example -------------------------------- Public Sub btnEval_Click()
Dim hExpression As Expression hExpression = New Expression hExpression.Text = txtEval.Text txtResult.Text &= CStr(hExpression.Value) & gb.NewLine Print Eval(txtEval.Text) Catch txtResult.Text &= "Error code:" & Error.Code & ", " & Error.Text & gb.NewLine Error.Clear End -------------------------------- with line Print Eval(txtEval.Text) i get True for "2>1" with line txtResult.Text &= CStr(hExpression.Value) & gb.NewLine i get the first letter "T" for true nothing for False is this the desired output? i expected True / False as EVAL() gambas3-svn4145 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user