Click here to Skip to main content
15,920,896 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to count elements in an array? Pin
code63110-Nov-06 4:54
code63110-Nov-06 4:54 
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 
Hi,
I'm working on a small VB.NET 2003 utility for my employer whereby I need to read in the contents of a text file, put it into a datagrid, and sum the totals for two of the columns.
I've had a quick look around, and all I keep on finding is reference to the 'split' command.
The problem is that there are no definitive splits in the text file.
The source text file is really messy, but it does have a structure that I hope I can work with. I have worked out that the lines I need to import all begin with a single character, "K". The columns (on these lines beginning with "K") that I need to import and work with, for example, start on character number 8, which references a product code, and is (for example) 8 characters in length. The next 'column' of information starts on character number 20, and is a numeric value covering 10 chars. Immediately after this 'column' (no spaces in between!) is another numeric value - again 10 characters in length.
What I want to do is put this data into a datagrid, and sum the numeric columns.
Any help would be appreciated.
AnswerRe: Transfer messy text file to datagrid Pin
RichardBerry10-Nov-06 3:21
RichardBerry10-Nov-06 3:21 
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 

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.