Link to home
Start Free TrialLog in
Avatar of dbroosv
dbroosv

asked on

Dinamically variable creation

Hello experts!!

I'm trying to build a new programming language using visual basic.  Like any other language, the user will have the chance to declare new variables (from the user's point of view the declaration is not at run time but from my point of view yes).  Can you tell me please the way of creating and declaring new variables on the fly?

Thanks.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

You better not use VB for that!

Use a language which, such as VC++, allow you to use pointers.
Avatar of Arana (G.P.)
Arana (G.P.)

if you still want to use some kind of basic, have a look
at xbasic  its very good and fast (and your code is portable to linux)
If you really need to create a variable on the fly, the only way I can think to do it would be to use a variant array and use a Redim statement inside it to increase the size of the array

(May need Redim preserve, so as not to lose any other data)
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial