How to choose the files I want
Posted on 2003-02-19
I made a program which recordes entries and displays the stuff that I entered earlier and it saves in a file that I specified.
And I made a check box to tick so it will also display on the screen later.
I want to filter the records as checked and not checked. The 'unchecked' stuff saves as "0" and checked
ones save as "1". If i can filter the 0s and 1s then i think it would be easy.
I want to view the checked and unchecked both seperatly.
This is the code I used to view all the records.
Dim strName As String
Dim intGrade As Integer
Dim strText1 As String
Dim strText2 As String
Dim splitText() As String
Open "C:\Program Files\Tax Pending\tax.txp" For Input As #1
Do Until EOF(1)
Input #1, strText2 'read entire line
splitText = Split(strText2, Chr(44)) 'split line by " ' "
strName = splitText(0)
'splittext is string, convert it to int
strText1 = splitText(0)
Form2.Print strName, intGrade, strText1
Its like displaying all of them. I told the program to save the 0s and 1s but didn't tell it to display. I hope u got my question.
check box name is chkCheckBox1.