[Gambas-user] A variable in a variable

Arno Nuyts arno at ...1440...
Wed May 10 23:43:22 CEST 2006


Hello,
I'm a new user of Gambas and just discovering it's language. I'm doing a
simple project but came to my first problem that I couldn't solve with the
documentation in the wiki.
I want to include a variable in the name of a variable. I've searched for it
in a forum and there it was said it couldn't be done. Is this true and if
so, are there work arounds?
In PHP it's written like this

$var = "Variable"
$in = "ar"
if($v$in == Variable) {
   echo"expected";
 }

Greetings,

Arno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060510/ba25b8dd/attachment.html>


More information about the User mailing list