Results 1 to 3 of 3

Thread: [RESOLVED] Save string to the program memory.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Resolved [RESOLVED] Save string to the program memory.

    I've read about this before but not sure what to search for.

    How do I save a string variable to the application's memory?

    Basically, instead of creating a file called lastopen.ini I want to save the commondialog.filename string to the app memory so that the next time it opens it the commondialog remembers where it was last at.

  2. #2
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: Save string to the program memory.

    Hi.
    I'm not quite sure if it is what you want, but maybe it can help you.
    This code opens a common dialog in the current directory:

    Code:
    Me.CommonDialog1.InitDir =  FileSystem.CurDir$

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: Save string to the program memory.

    Sorry, found it. It's the GetSetting and SaveSetting method statements.
    Thanks though RS Arm. I'll try to remember that.

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