Click here to Skip to main content
15,924,829 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to count elements in an array? Pin
nlarson1110-Nov-06 5:40
nlarson1110-Nov-06 5:40 
QuestionReadPixel in image Pin
charchabil0310-Nov-06 4:11
charchabil0310-Nov-06 4:11 
AnswerRe: ReadPixel in image Pin
indianet10-Nov-06 4:38
indianet10-Nov-06 4:38 
QuestionReplace * with empty space Pin
jds120710-Nov-06 3:45
jds120710-Nov-06 3:45 
AnswerRe: Replace * with empty space Pin
nlarson1110-Nov-06 3:54
nlarson1110-Nov-06 3:54 
GeneralRe: Replace * with empty space Pin
jds120710-Nov-06 4:22
jds120710-Nov-06 4:22 
QuestionTransfer messy text file to datagrid Pin
penguin500010-Nov-06 1:55
penguin500010-Nov-06 1:55 
AnswerRe: Transfer messy text file to datagrid Pin
RichardBerry10-Nov-06 3:21
RichardBerry10-Nov-06 3:21 
Perhaps you could use something like this?

Not very elegant...


<br />
Dim fs1 As New FileStream("C:\keysdig2.dbf", FileMode.Open, FileAccess.Read)<br />
		Dim sr1 As New BinaryReader(fs1)<br />
		Dim strMyNum As String<br />
		Dim dt As DataTable<br />
		Dim dr As DataRow<br />
		Do While sr1.PeekChar <> -1<br />
			dr = dt.NewRow<br />
			If sr1.PeekChar = "K" Then<br />
				'Read 8 chars to get to the first number of interest<br />
				For i As Integer = 0 To 7<br />
					sr1.ReadChar()<br />
				Next<br />
				'First Number (10 Chars)<br />
				For j As Integer = 0 To 9<br />
					strMyNum += sr1.ReadChar.ToString<br />
				Next<br />
				dr.Item(0) = strMyNum			 'Place in first Col of Datarow<br />
				strMyNum = ""<br />
				'Second Number (8 Chars)<br />
				For k As Integer = 0 To 7<br />
					strMyNum += sr1.ReadChar.ToString<br />
				Next<br />
				dr.Item(1) = strMyNum			 'Place in Second Col of Datarow<br />
				strMyNum = ""<br />
<br />
				dt.Rows.Add(dr)<br />
			End If<br />
		Loop<br />

Question.net addin putlook Pin
K edar V10-Nov-06 0:38
K edar V10-Nov-06 0:38 
AnswerRe: .net addin putlook Pin
Guffa10-Nov-06 13:12
Guffa10-Nov-06 13:12 
GeneralRe: .net addin putlook Pin
K edar V10-Nov-06 23:43
K edar V10-Nov-06 23:43 
QuestionQuestions on Forms Pin
Pete Newman10-Nov-06 0:28
Pete Newman10-Nov-06 0:28 
AnswerRe: Questions on Forms Pin
nlarson1110-Nov-06 4:18
nlarson1110-Nov-06 4:18 
QuestionClose all the application in vb.net Pin
V Senthil9-Nov-06 22:53
V Senthil9-Nov-06 22:53 
AnswerRe: Close all the application in vb.net Pin
b43r_3oo310-Nov-06 0:21
b43r_3oo310-Nov-06 0:21 
GeneralRe: Close all the application in vb.net Pin
V Senthil10-Nov-06 1:33
V Senthil10-Nov-06 1:33 
GeneralRe: Close all the application in vb.net Pin
Dave Kreskowiak10-Nov-06 2:48
mveDave Kreskowiak10-Nov-06 2:48 
QuestionVS2005 - Where is the Form's Sub New Pin
RichardBerry9-Nov-06 22:06
RichardBerry9-Nov-06 22:06 
AnswerRe: VS2005 - Where is the Form's Sub New Pin
Christian Graus9-Nov-06 22:17
protectorChristian Graus9-Nov-06 22:17 
GeneralRe: VS2005 - Where is the Form's Sub New Pin
b43r_3oo310-Nov-06 0:16
b43r_3oo310-Nov-06 0:16 
AnswerRe: VS2005 - Where is the Form's Sub New Pin
Dave Kreskowiak10-Nov-06 2:44
mveDave Kreskowiak10-Nov-06 2:44 
GeneralRe: VS2005 - Where is the Form's Sub New Pin
RichardBerry10-Nov-06 2:56
RichardBerry10-Nov-06 2:56 
QuestionData type conversion into VB Pin
Instamatix9-Nov-06 21:33
Instamatix9-Nov-06 21:33 
AnswerRe: Data type conversion into VB Pin
Christian Graus9-Nov-06 22:18
protectorChristian Graus9-Nov-06 22:18 
GeneralRe: Data type conversion into VB Pin
Instamatix9-Nov-06 22:55
Instamatix9-Nov-06 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.