[Gambas-user] Eval() and gb.eval

Demosthenes Koptsis demosthenesk at ...626...
Sat Sep 24 21:44:06 CEST 2011


txtResult.Text &= CStr(hExpression.Value)

gives the same result with

txtResult.Text &= hExpression.Value

which is "T"

i think gambas3 make in the background the convertion (i think...) and
CStr may be is useless.




On Sat, 2011-09-24 at 19:29 +0200, tobias wrote: 
> On 24.09.2011 18:50, Demosthenes Koptsis wrote:
> > so True = T and False = Null for
> > txtResult.Text&= CStr(hExpression.Value)&   gb.NewLine
> >
> > that i also get.
> >
> >
> > I just wonder if this is correct.
> > i expected the same functionality with Eval().
> >
> >
> >
> i suppose, it *has* the same functionality ("suppose" because i didn't 
> look in the sources). it's just a matter of your conversion to a string.
> try
> Print hExpression.Value
> it should give you True
> and txtResult.Text = CStr(Eval()) should give "T" respectively.
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list