Maintain the session in VB6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BSB
    New Member
    • Jul 2007
    • 19

    #1

    Maintain the session in VB6.0

    Hi,

    In my VB application,I have many forms.
    In one form I have 4 dropdownlist(dd l)
    used by one user.


    I wanted to make ddl selected value to be the last selected value by that user

    say one dropdown is called ddlCountry containing country names
    say first time the user selects USA and performs some operation, and he closes the application.

    When the second time he logs in the ddlCountry's selected value should point to USA rather than showing the default value

    Any Suggestions please
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    To maintain information from one run of your application ot the next, you obviously have to store it somewhere and retrieve it next time you start up. Some of the methods traditionally used for this are...
    • Write it to a text file in your application folder
    • Write to an INI file in your application folder (as I recall, there are functions available in Windows or VB to facilitate this)
    • Write it to a text file in a common location such as the Windows folder.
    • Write to an INI file in a common location such as the Windows folder.
    • Write it to the system registry.
    • Save it in a database (such as an MS Access file)

    Comment

    • BSB
      New Member
      • Jul 2007
      • 19

      #3
      Originally posted by Killer42
      To maintain information ... Save it in a database (such as an MS Access file)
      *************** *************** **********

      thank u
      Last edited by Killer42; Aug 23 '07, 10:16 PM. Reason: Shortened excessive quote block

      Comment

      Working...