[Gambas-user] Executing a constructed instruction
Daniel
daniel.campos at ...338...
Thu Jun 10 22:18:34 CEST 2004
El jue, 10-06-2004 a las 20:52, Nigel Gerrard escribió:
> 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.
May be you can do:
Public Sub sCommand()
PRINT \"Hello\""
End Sub
....
sCommand
....
I don't see why that big change, except if you
want something like "pointers to function" in C...
Regards,
Daniel Campos
More information about the User
mailing list