Solved

Dinamically variable creation

Posted on 2002-06-06
4
145 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:dbroosv
4 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7059859
You better not use VB for that!

Use a language which, such as VC++, allow you to use pointers.
0
 
LVL 10

Expert Comment

by:arana
ID: 7059916
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)
0
 
LVL 2

Expert Comment

by:FalconMaster
ID: 7059921
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)
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
ID: 7059988
Please maintain your open questions:

Synchronization Date: 01/24/2002 12:01PM PST
http://www.experts-exchange.com/jsp/qShow.jsp?ta=palmpilot&qid=20259144
don't kill a process under windows 2000 Date: 11/29/2001 08:48AM PST  
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20241963

Anthony
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now