Search Tools Links Login

Store TextBox, ListBox, and other controls values in a file then restore them from a file.


Visual Basic 6, or VB Classic

This code will save values for TextBox, CheckBox, ListBox, ComboBox, OptionButton, and MultiLine TextBoxes with no problem. It demonstrates using the controls collection to go through all controls contained on a form and save their values. It also has an error handler that gives abort, Retry and ignore options on errors. It uses conditional compilation to help with debugging by printing values to the debug window. This behavior can be changed by changing #const debugmode to 0. The file will automatically be saved in the same directory as your application and will contain the forms name with an extenstion of .set.

Original Author: http://vbPlanet.ath.cx

Inputs

a Form Object

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 87 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD15947342001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 4,676 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.