|
-
Oct 10th, 2000, 08:08 AM
#1
Thread Starter
Fanatic Member
Is it possible to convert a string to the name of an object, in this case so it can be opened using show method.
The reason I'm asking is coz I have a client server setup. The server send the client a message(which is a string). The message will then tell the client which form to open.
Any help will be greatfully appreciated.
Cheers
Nick.
-
Oct 11th, 2000, 03:45 PM
#2
One method to open it (which would work with all old and new forms) is to create a separate program to invoke each one.
Then the server recieves the message, and (independantly of VB) invokes the program to invoke the form. Presumably, you would need to name the form invoker the same name as the form.
At least, it seems like this should be able to be done.
A second, less elegant method, would be to assign each form a specific value which could then be looked up and passed to a subroutine to invoke the proper form. That would require a re-compile each time you added a form, however.
Good Luck
DerFarm
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
|