variable names during run time ? 
Author Message
 variable names during run time ?

Is there a way to dynamically assign Variable Names using Strings that i get
from the database

For eg I have
webspherePath
and C:\websphere

returned from a XML file ,
i want to declare a variable named
wespherePath as String = "c:\websphere"

thanks
Ram



Thu, 11 Nov 2004 12:10:49 GMT  
 variable names during run time ?
Hash Tabe wil help you. Try using them. They are Key-Value pairs.
Dim myHT As New Hashtable()

for each tag in xmlkeep adding them to hash table

dim X as string="xxx"             ' Obtain values from XML
dim Y as String = "zzz"           ' Obtain values from XML
 myHT.Add(X, Y)
loop

Let me know How this helped You
Good Luck
B Harish Kamath


Quote:
> Is there a way to dynamically assign Variable Names using Strings that i
get
> from the database

> For eg I have
> webspherePath
> and C:\websphere

> returned from a XML file ,
> i want to declare a variable named
> wespherePath as String = "c:\websphere"

> thanks
> Ram



Thu, 11 Nov 2004 14:53:42 GMT  
 variable names during run time ?
Cool ! , it works.

Thanks for the quick reply ,
Ram



Quote:
> Hash Tabe wil help you. Try using them. They are Key-Value pairs.
> Dim myHT As New Hashtable()

> for each tag in xmlkeep adding them to hash table

> dim X as string="xxx"             ' Obtain values from XML
> dim Y as String = "zzz"           ' Obtain values from XML
>  myHT.Add(X, Y)
> loop

> Let me know How this helped You
> Good Luck
> B Harish Kamath



Fri, 12 Nov 2004 01:03:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. *difficult* Debug.Print variable during run-time

2. Dynamic variable naming at run time

3. Run Time Error 91: Object variable or With Block variable not set

4. How to pass Database name and Stored Procedure Name at run time in subreports

5. Getting the function's name during runtime while running in the scope of the function

6. Can a variable name be built during run time?

7. making a mdi form a form during run time with click event

8. Changing Locked Property in Access 2.0 During Run Time

9. connection btw rdc and db during run-time ?

10. Create a database during run time

11. The mouse not working on the dbcombo during run time

12. Open files .bmp, .jpg, .dwg with vb during run time

 

 
Powered by phpBB® Forum Software