[Gambas-user] About call sub from string

Olivier Coquet ocoquet at 3d-phenomen.fr
Thu Jan 7 13:36:46 CET 2021


Hi all,

Is somebody to know if it's possible to call a sub from a stringvar 
which contain the name of the sub ?

I've tryed EVAL but don't work :(

exemple of what I want to do:

public sub main()

Dim mavar as string = "masub()"

eval (mavar,"")

endsub

public sub masub()

endsub

Thank's for reply

Olivier Coquet



More information about the User mailing list