Hi Everyone , have a nice day
VB Code:
Private Sub Command1_Click() Dim txt As String Dim strline() As String Dim word As String Dim mean As String Dim strvalues() As String FF = FreeFile Open App.Path & "\words.txt" For Input As FF txt = Input(LOF(FF), FF) 'Read the whole file Close FF strline = Split(txt, vbNewLine) For z = 0 To 3203 strvalues = Split((strline(z)), "|") word = strvalues(0) mean = strvalues(1) Label1.Caption = word Label2.Caption = mean Next z End Sub Private Sub Command4_Click() Unload Form1 End Sub
The code given above is what i have done till now . words.txt is basically a file having vocabulary in which one word is on each line and its meaning is separated by "|".
now what i want to do is that i have couple of more cummand buttons on my form like "next word" , "show meaning" , which should have capability of moving to next word without meanings display ... or show meanings .. and then proceed to next word .. but i donno how should i put that feasibility here ..
like i had in my mind if i could give something like .. within z loop
if commandbutton2_click = true
then label1.caption=word
but this doesnt work ..
i hope i making myself clear enuff
Regards and waiting for responce




Reply With Quote