shell app.path & "\" & app.name & ".exe"
end
Dim Lines() as String 'Dims as array
Lines=Split(Data, VBNewLine) 'This splits the data into sections by line
For i=0 to Ubound(Lines) 'Loops through the data
Combo1.Additem Lines(i) 'Add to a combo box.
Next
Private Sub ReadFileIntoCombo(File_Path As String, Cmbo As combobox)
Dim lonFF As Long
Dim tempstr() As String
Dim i As Integer
lonFF = FreeFile
Open File_Path For Binary Access Read As #lonFF
tempstr = Split(Input(LOF(1), #lonFF), vbCrLf)
For i = 0 To UBound(tempstr())
Cmbo.AddItem tempstr(i)
Next i
Close #lonFF
End Sub
Call ReadFileIntoCombo("C:\ScanSectorLog.dat", Combo1)
Private Sub Combo1_Click()
Select Case Combo1.Text
Case "bla1": text1.text = "blablabla"
Case "bla2": text1.text = "Blah2"
Case "Blagger": text1.text = "Boo"
...
End Select
End Sub
Private Sub Combo1_Click()
Text1.Text = Combo1.Text
End Sub
Private Sub Combo1_Click()
Select Case Combo1.Text
Case "Hello": a = "Helloooo"
Case "Hi": a = "Hiiii"
Case "Cya": a = "Cyaaaaaaa"
Case "Bye": a = "Byeeeeeee"
End Select
Text1.Text = a
End Sub
Which bit of this code actually looks through the HTML, and selects each number etc. Could someone annotate it please![]()
Split function, for both. The hiscores lookup splits the html string at the linefeed char, retrieves the element, and splits again with the "," char and gets the element again.How would i find the string number from some text in a text box. Something like this:
hello 3 bye e jazz f dave w covey 6 halo 3 jds
I want to find the 4th string, and print it; So therefore it would print 'Dave', It also has to skip any single characters =)