954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to create variables dynamically

Hi, can any one tell me how to create standalone variables during runtime.

This is what we generally do in design mode when we need to create strings of fixed length like -

dim x as string * 5

now i want to do such things dynamically. suppose i need to declare 2 individual variables in runtime of string type. as i don't know how much i need to declare, i can't declare it in design time. now if my requirement is 2 then there should have 2 vars. been declared like -

dim x1 as string * 5
dim x2 as string * 6

one more thing is that i can't use arrays in this case because also i need to define their lengths. because i think in array we can create elements dynamically but how could we define length to each & every elements in that array?

So, is there any way to overcome this?

Plz... i really need to figure this out.
So plz help me on this.

It will be great if i got such links/resources where i can get such similar things.

Thanks to all...............in advance

choudhuryshouvi
Posting Pro
553 posts since May 2007
Reputation Points: 30
Solved Threads: 49
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You