[Gambas-user] Stiil problems with EVAL

ron ronstk at ...239...
Mon Sep 3 20:33:38 CEST 2007


On Monday 03 September 2007 20:09, Steven Lobbezoo wrote:
> >   PRINT Eval("X * Len(Y)", Context)
> >
> > Context here is the TAG (Context) and the value is in TAG[1] (Len(Y))
> > Looks to me the Eval line must be then Rstr = Eval(tag[1],Tag)
> ?????????????
> 

  PRINT Eval( "X * Len(Y)" , Context )

transforms with 

  PRINT <-> Rstr =
  "X * Len(Y)" <-> tag[1]     ' is the string "Mglobal.U_nom"
  Context <-> Tag

to

  Rstr = Eval( Tag[1] , Tag ) ' is eq Eval("Mglobal.U_nom",Tag)

Or just simple said, add ', Tag' into the Eval()  :)
 
Ron




More information about the User mailing list