0 Replies - 1100 Views - Last Post: 07 January 2009 - 12:38 AM Rate Topic: -----

#1 Guest_lawrencetam*


search and display a record from text file in .net CE

Posted 07 January 2009 - 12:38 AM

I want to load a text file (a item master with 7 fields line by line) in windows CE 5.0
and search a item no. then display the record of this item no. from text file.
anyone has idea how to search a record from a two-dimensional array , when matching , display the record.
 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
		Dim parser As IO.TextReader = System.IO.File.OpenText("C:\qstck.txt")
		Dim FileLines() As String = Split(parser.ReadToEnd(), vbCrLf)

		Dim item() As String = Split(FileLines(1), "?")

		TextBox2.Text = item(0)
		REM TextBox3.Text = item(1)
		REM TextBox4.Text = item(2)
		REM TextBox5.Text = item(3)
		REM TextBox6.Text = item(4)
		REM TextBox7.Text = item(5)
		REM TextBox8.Text = item(6)

	End Sub

Attached image(s)

  • Attached Image

Is This A Good Question/Topic? 0

Page 1 of 1