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

Visual Basic

 
GeneralRe: Use controls who are creating dynamically Pin
ivo751-Jan-10 23:21
ivo751-Jan-10 23:21 
AnswerRe: Use controls who are creating dynamically Pin
shravan raval2-Jan-10 4:20
shravan raval2-Jan-10 4:20 
Questionfont based text editor Pin
sarcino1-Jan-10 5:30
sarcino1-Jan-10 5:30 
AnswerRe: font based text editor Pin
sarcino1-Jan-10 8:01
sarcino1-Jan-10 8:01 
GeneralRe: font based text editor Pin
Smithers-Jones1-Jan-10 10:40
Smithers-Jones1-Jan-10 10:40 
GeneralRe: font based text editor Pin
sarcino1-Jan-10 11:25
sarcino1-Jan-10 11:25 
Questioni need help with image compression? Pin
sheshe881-Jan-10 5:05
sheshe881-Jan-10 5:05 
QuestionSplitting a .txt file into lots of textboxes in vb6 Pin
offroaderdan1-Jan-10 0:16
offroaderdan1-Jan-10 0:16 
Hello experts.

I have a .txt file which all works fine and i can read it fine. I have a program which i where i need to split this 1 big text box up. I roughly think i know how to do it but am stuck.


nFileNum = FreeFile

' Open a text file for input. inputbox returns the path to read the file
Open App.Path & "\stock.txt" For Input As nFileNum
lLineCount = 1



' Read the contents of the file
Do While Not EOF(nFileNum)
   Line Input #nFileNum, sNextline
   'do something with it
   'add line numbers to it, in this case!
   sNextline = sNextline & vbCrLf
   stext = stext & sNextline & vbNewLine    'take out sNumbers if dont work



Loop


txtRead.Text = stext


what i intially want to do is have txtRead1.text for 1 piece of information, then nextline txtRead2.text and so on.

I thought i had to use a for next loop but they really don't like me!!

If any body can help that would be really helpful Smile | :)

Cheers Dan
AnswerRe: Splitting a .txt file into lots of textboxes in vb6 Pin
powerdown1-Jan-10 6:08
powerdown1-Jan-10 6:08 
Questionhow to solve zipe files with space ? [modified] Pin
Golden Jing31-Dec-09 22:50
Golden Jing31-Dec-09 22:50 
AnswerRe: how to solve zipe files with space ? Pin
DaveAuld1-Jan-10 4:03
professionalDaveAuld1-Jan-10 4:03 
GeneralRe: how to solve zipe files with space ? Pin
Golden Jing1-Jan-10 4:54
Golden Jing1-Jan-10 4:54 
GeneralRe: how to solve zipe files with space ? Pin
DaveAuld1-Jan-10 5:24
professionalDaveAuld1-Jan-10 5:24 
GeneralRe: how to solve zipe files with space ? Pin
Golden Jing1-Jan-10 5:45
Golden Jing1-Jan-10 5:45 
AnswerRe: how to solve zipe files with space ? [modified] Pin
Alan N1-Jan-10 6:08
Alan N1-Jan-10 6:08 
GeneralRe: how to solve zipe files with space ? Pin
Golden Jing1-Jan-10 6:21
Golden Jing1-Jan-10 6:21 
GeneralRe: how to solve zipe files with space ? Pin
Alan N1-Jan-10 6:24
Alan N1-Jan-10 6:24 
GeneralRe: how to solve zipe files with space ? Pin
Golden Jing1-Jan-10 6:43
Golden Jing1-Jan-10 6:43 
QuestionHide Process From Taskmanager Pin
Anubhava Dimri31-Dec-09 20:58
Anubhava Dimri31-Dec-09 20:58 
AnswerRe: Hide Process From Taskmanager Pin
DaveAuld31-Dec-09 21:29
professionalDaveAuld31-Dec-09 21:29 
AnswerRe: Hide Process From Taskmanager Pin
Dave Kreskowiak1-Jan-10 6:35
mveDave Kreskowiak1-Jan-10 6:35 
GeneralRe: Hide Process From Taskmanager Pin
Anubhava Dimri1-Jan-10 17:20
Anubhava Dimri1-Jan-10 17:20 
GeneralRe: Hide Process From Taskmanager Pin
Dave Kreskowiak1-Jan-10 18:47
mveDave Kreskowiak1-Jan-10 18:47 
GeneralRe: Hide Process From Taskmanager Pin
Anubhava Dimri1-Jan-10 19:06
Anubhava Dimri1-Jan-10 19:06 
GeneralRe: Hide Process From Taskmanager Pin
Dave Kreskowiak1-Jan-10 19:12
mveDave Kreskowiak1-Jan-10 19:12 

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.