get from notepad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • berry
    New Member
    • May 2007
    • 46

    get from notepad

    Hi all..
    I would like to know how to get the words from the notepad.

    This is the case:
    I have a lot of form with many ADODC. But all ADODC's connection string are connect to the same location, using the same password, same IP address... and now, to convenient the update job in the future (I mean when change the IP address), others can easily just edit in the notepad, not in the code. How do I do that?

    My current code is:
    Adodc1.Connecti onString = "Driver={My SQL ODBC 3.51 Driver};Server= data.domain.com ;Port=3306;Data base=myDataBase ;User=root;Pass word=1234;Optio n=3;

    If in notepad, only write:
    Driver={MySQL ODBC 3.51 Driver};Server= data.domain.com ;Port=3306;Data base=myDataBase ;User=root;Pass word=1234;Optio n=3;

    Am I correct? Is this way work?

    Thanks for your help..
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    There's no IP address in there, so why would it be affected?

    Anyway, maybe you should store your connection string (or relevant parts) in the registry or something, and provide an interface in your program (or a separate configuration program) to allow the user to modify it.

    Comment

    Working...