|
-
Aug 14th, 2000, 07:44 PM
#1
Thread Starter
Hyperactive Member
I have a global variable declared in a module:
Global Const HKEY_USERS = &H80000003
How can I call this long variable by name in a function?
Let's say I have a function and I would like to have the first parameter be the global constant.
I want to have the user type the global variable name into
a text box and then have the OnClick event of a command button call a Sub with the constant as a parameter.
Call Myfunction(Text1.Text) gives me an error. |where text1.text = "HKEY_USERS"
this doesn't work. Any help guys?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|