Question:

I need help saving user input in VB 6.0.

by  |  earlier

0 LIKES UnLike

Is there a way to save from text boxes without writing each to a text file through a variable, and re load the info into the right boxes when the application is opened? An API etc?

 Tags:

   Report

2 ANSWERS


  1. Use a SaveSetting statement for each setting being saved:

    Savesetting("MyAppName","MySection","M... "SomeSettingHere")

    When loading your app (inside the Form Load event) type:

    SomeSettingValue = Getsetting("MyAppName","MySection","MyKe... "DefaultValueHere")

    Give some standard value to the default setting. Default values can be any string, boolean, integer, string containing a path to some database, etc

    Hope this helps, Good Luck!


  2. u can use SAVESETTING method in vb6.0. Try a google on it, for a details explanation. It has SAVESETTING & GETSETTING method, in order for you to save the STATE of a FORM(e.g default values).

    hope this helps.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.