[Gambas-user] Executing a constructed instruction

Jeff Johnson jeffjohnson at ...377...
Tue Jun 15 21:15:19 CEST 2004


Foxpro had the & command
You could say 
A = 1
do while A < 12
      mvar = "text" + Str(A) + "b.txt"
      print &mvar
     A = A + 1
enddo


prints text1b.txt, text2b.txt etc

in other words the & meant the contents of a varable like a pointer
I always missed that in VB  and wondered why MS never carried it over


On Monday 14 June 2004 14:12, Benoit Minisini wrote:
> On Thursday 10 June 2004 20:52, Nigel Gerrard wrote:
> > Has anybody got an idea how I might run a string as a command within
> > Gambas.
> >
> > For example:
> >
> >       DIM sCommand AS String
> >
> >       sCommand = "PRINT \"Hello\""
> >
> >       sCommand
> >
> >
> > I'm guessing that it won't be possible without many changes to the pcode
> > compiler and interpreter....and I guess it would get verycomplicated.
> >
> > Nigel
>
> Why do you need that ?
>
> If you really need such a thing, you should program in Lisp :-)
> Gambas will never be able to do such a thing, or the interpreter will
> become monstruous!
>
> Regards,




More information about the User mailing list