need some more help on my project.
In my program i am able to save some values in a file on 1 form as shown below:
Private Sub cmdSave_Click()
Dim Response As String
Response = InputBox("Save data as...")
Open Response For Output As #1
Print #1, txtMedian.Text, txtLowerQuartile.Text, txtUpperQuartile.Text, _
txtInterquartileRange.Text, txtMaxValue.Text, txtMinValue.Text
Close #1
End Sub
But now, in a different form i want to use the values from this file. At the moment, i managed to get the combo box to recognise the files but what i want is as soon as 1 of these files is selected in the box, the values are straight away shown on some text boxes i have already set up. How do i go about doing so?
Private Sub Form_Activate()
Dim temps As String
temps = Dir("*.txt")
cboDir1.AddItem (temps)
cboDir2.AddItem (temps)
Do Until temps = ""
temps = Dir
cboDir1.AddItem (temps)
cboDir2.AddItem (temps)
Loop
End Sub
Free bunny for anyone who helps me
(\ /)
( . .)
C('')('')
This post has been edited by BooBooJr: 17 May 2008 - 09:54 AM

New Topic/Question
Reply




MultiQuote





|