Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving to disk need more help

Status
Not open for further replies.

orisons

Programmer
Feb 18, 2002
49
CA
I would like to save some values from a calculation so when a user starts a program again the last values are in place
this comprises of up too 5 text boxes ( all of which will hold numeric values only
the last values should only be saved when the calculation is performed
any help would be much appriciated
 
Hi orisons,
You could do something quite similar to what we did with the checkboxes.

filehand = freefile
open "c:\calcdata" for output as #filehand
print #filehand, trim(txtBox1.Text)
print #filehand, trim(txtbox2.Text)
print #filehand, trim(txtBox3.Text)
print #filehand, trim(txtbox4.Text)
print #filehand, trim(txtBox5.Text)
close #filehand


filehand = freefile
open "c:\calcdata" for input as #filehand
input #filehand, txtbox1.text
input #filehand, txtBox2.Text
input #filehand, txtbox3.text
input #filehand, txtbox4.text
input #filehand, txtbox5.text
close #filehand



Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top