Click here to Skip to main content
16,005,037 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: what is differeence between i.equal(j) and i=j in vb.net? Pin
Guffa13-Jan-07 23:55
Guffa13-Jan-07 23:55 
AnswerRe: what is differeence between i.equal(j) and i=j in vb.net? Pin
Enriad19-Jan-07 14:28
Enriad19-Jan-07 14:28 
QuestionRetrieving Data from Dataset Pin
sdkgolf12-Jan-07 20:11
sdkgolf12-Jan-07 20:11 
AnswerRe: Retrieving Data from Dataset Pin
ObsidianWarrior12-Jan-07 22:19
ObsidianWarrior12-Jan-07 22:19 
QuestionRe: Retrieving Data from Dataset Pin
sdkgolf13-Jan-07 10:46
sdkgolf13-Jan-07 10:46 
AnswerRe: Retrieving Data from Dataset Pin
sdkgolf15-Jan-07 10:21
sdkgolf15-Jan-07 10:21 
QuestionBuffer Size in TCP for HTTPWEBREQUEST Pin
nihonsx512-Jan-07 14:29
nihonsx512-Jan-07 14:29 
QuestionDifficult Question: Read/Modify file Pin
SumTinWong12-Jan-07 12:03
SumTinWong12-Jan-07 12:03 
Thanks in advance for reading this.

Let's say I have a file (file01) with this data in ASCII (ignore line col):

line01 123abc
line02 Header01 Starts blah var
line03 detail01 000001
line04 detail02 000002
line05 detail03 000003
line06 detail04 000004
line07 detail05 000005
line08 detail06 000006
line09 detail07 000007
line10 Header01 Ends
line11 Header02 Starts blah var
line12 detail01 000001
line13 detail02 000002
line14 detail03 000003
line15 detail04 000004
line16 detail05 000005
line19 Header03 Ends

Here's what I need to do:

1. traverse each line and modify some section of the line
(it could postion 10-20) according to some logic in a function.

2. For Header line, I need to know the last detail line for that header
of a section (it could postion 20-25). So for Header02 (line11) I would
need to grab the value '000005' (line16).

The result for file01 will have it's line modified accordingly.

The main question is how can I traverse down line by line, and
when I get to the Header, somehow get the value of the last detail line
for that header, and continue the next line after the header which
is the first detail line.

I know you can do this in C by creating a dummy pointer to point
to the header and then traverse to the last detail line and return the
value. And then destroy the pointer.

I just don't know how to do this is .NET.


Thanks in advance for your replies!
QuestionListview Data to XML Pin
hkinser912-Jan-07 11:35
hkinser912-Jan-07 11:35 
AnswerRe: Listview Data to XML Pin
japel13-Jan-07 11:19
japel13-Jan-07 11:19 
GeneralRe: Listview Data to XML Pin
hkinser913-Jan-07 16:07
hkinser913-Jan-07 16:07 
QuestionIs it possible to password protect FOLDER Pin
focusit12-Jan-07 10:03
focusit12-Jan-07 10:03 
AnswerRe: Is it possible to password protect FOLDER Pin
Dave Kreskowiak12-Jan-07 10:07
mveDave Kreskowiak12-Jan-07 10:07 
GeneralRe: Is it possible to password protect FOLDER Pin
focusit14-Jan-07 3:56
focusit14-Jan-07 3:56 
GeneralRe: Is it possible to password protect FOLDER Pin
Colin Angus Mackay14-Jan-07 4:04
Colin Angus Mackay14-Jan-07 4:04 
GeneralRe: Is it possible to password protect FOLDER Pin
Dave Kreskowiak14-Jan-07 4:38
mveDave Kreskowiak14-Jan-07 4:38 
GeneralRe: Is it possible to password protect FOLDER Pin
focusit15-Jan-07 12:21
focusit15-Jan-07 12:21 
GeneralRe: Is it possible to password protect FOLDER Pin
Dave Kreskowiak15-Jan-07 19:14
mveDave Kreskowiak15-Jan-07 19:14 
QuestionDynamically creating panels and text boxes Pin
portreathbeach12-Jan-07 9:17
portreathbeach12-Jan-07 9:17 
AnswerRe: Dynamically creating panels and text boxes Pin
Dave Kreskowiak12-Jan-07 9:43
mveDave Kreskowiak12-Jan-07 9:43 
GeneralRe: Dynamically creating panels and text boxes Pin
portreathbeach12-Jan-07 10:08
portreathbeach12-Jan-07 10:08 
GeneralRe: Dynamically creating panels and text boxes Pin
Dave Kreskowiak12-Jan-07 10:11
mveDave Kreskowiak12-Jan-07 10:11 
GeneralRe: Dynamically creating panels and text boxes Pin
portreathbeach12-Jan-07 11:22
portreathbeach12-Jan-07 11:22 
GeneralRe: Dynamically creating panels and text boxes Pin
arcticbrew13-Jan-07 14:31
arcticbrew13-Jan-07 14:31 
QuestionDVD playback in VB.net Pin
portreathbeach12-Jan-07 9:10
portreathbeach12-Jan-07 9:10 

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.