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

Visual Basic

 
AnswerRe: Convert into the Indian Rs formate Pin
DaveAuld24-Dec-09 22:18
professionalDaveAuld24-Dec-09 22:18 
AnswerRe: Convert into the Indian Rs formate [modified] Pin
Dimitri Witkowski26-Dec-09 2:50
Dimitri Witkowski26-Dec-09 2:50 
QuestionUsing Combo box Pin
sun.spider24-Dec-09 19:21
sun.spider24-Dec-09 19:21 
AnswerRe: Using Combo box Pin
DaveAuld24-Dec-09 22:21
professionalDaveAuld24-Dec-09 22:21 
Questionhow to decode =?windows-874?B?t7TKzbogdGVzdCB=?= to Thai Langauge ? [modified] Pin
narongaun24-Dec-09 18:19
narongaun24-Dec-09 18:19 
AnswerRe: how to decode =?windows-874?B?t7TKzbogdGVzdCB=?= to Thai Langauge ? Pin
DaveAuld24-Dec-09 22:25
professionalDaveAuld24-Dec-09 22:25 
GeneralRe: how to decode =?windows-874?B?t7TKzbogdGVzdCB=?= to Thai Langauge ? Pin
narongaun24-Dec-09 22:48
narongaun24-Dec-09 22:48 
QuestionFor next loop and external file handling? Pin
offroaderdan24-Dec-09 3:09
offroaderdan24-Dec-09 3:09 
Hello experts.

I am stuck on something.

I have an external file whihc i am read/writting to it, that bit i can do however, what i really need to be able to do is split the document up.

At the moment i have one big text box with lots of data in it, what i need to do is split that data up and put the data into seperate textboxes,

i thought i could do this with a FOR and NEXT loop however that doesn't seem to work

Here's my code
Dim i(1 To 10) As Integer 
'reading a file

' Get a free file number
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

For i = 1 To 10 ' this loop doesn't seem to work!

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

'Next sNumber
next i 
Loop


txtRead.Text = sText(1)
txtRead1.Text = sText(2)


if anybody can help me that would be very helpful

Thanks

Dan
AnswerRe: For next loop and external file handling? Pin
Eddy Vluggen24-Dec-09 4:09
professionalEddy Vluggen24-Dec-09 4:09 
AnswerRe: For next loop and external file handling? Pin
DaveAuld24-Dec-09 22:27
professionalDaveAuld24-Dec-09 22:27 
AnswerRe: For next loop and external file handling? [modified] Pin
Md. Marufuzzaman25-Dec-09 8:34
professionalMd. Marufuzzaman25-Dec-09 8:34 
QuestionDatabase problem NEARLY sorted out Pin
offroaderdan24-Dec-09 1:12
offroaderdan24-Dec-09 1:12 
AnswerRe: Database problem NEARLY sorted out Pin
offroaderdan24-Dec-09 1:13
offroaderdan24-Dec-09 1:13 
AnswerRe: Database problem NEARLY sorted out Pin
Md. Marufuzzaman24-Dec-09 1:44
professionalMd. Marufuzzaman24-Dec-09 1:44 
GeneralRe: Database problem NEARLY sorted out Pin
offroaderdan24-Dec-09 1:53
offroaderdan24-Dec-09 1:53 
GeneralRe: Database problem NEARLY sorted out Pin
offroaderdan24-Dec-09 2:03
offroaderdan24-Dec-09 2:03 
GeneralTransfer text Pin
David Mujica24-Dec-09 2:10
David Mujica24-Dec-09 2:10 
GeneralRe: Transfer text Pin
offroaderdan24-Dec-09 2:13
offroaderdan24-Dec-09 2:13 
GeneralRe: Database problem NEARLY sorted out Pin
Eddy Vluggen24-Dec-09 4:07
professionalEddy Vluggen24-Dec-09 4:07 
GeneralRe: Database problem NEARLY sorted out Pin
Luc Pattyn24-Dec-09 4:39
sitebuilderLuc Pattyn24-Dec-09 4:39 
GeneralRe: Database problem NEARLY sorted out Pin
Eddy Vluggen24-Dec-09 6:57
professionalEddy Vluggen24-Dec-09 6:57 
GeneralRe: Database problem NEARLY sorted out Pin
Md. Marufuzzaman24-Dec-09 2:03
professionalMd. Marufuzzaman24-Dec-09 2:03 
QuestionSetup Problem for Crystal Report in VS 2008 Pin
εїзεїзεїз23-Dec-09 18:57
εїзεїзεїз23-Dec-09 18:57 
AnswerRe: Setup Problem for Crystal Report in VS 2008 Pin
εїзεїзεїз23-Dec-09 20:50
εїзεїзεїз23-Dec-09 20:50 
QuestionPassing data form one form to multiple form and vise versa. [VB .Net] Pin
GeorgeShii23-Dec-09 15:16
GeorgeShii23-Dec-09 15:16 

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.