Results 1 to 2 of 2

Thread: converting a string to the name of an object.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    Exclamation

    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.

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width