Click here to Skip to main content
15,891,702 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: the "top" property of a control returns 0 Pin
Dave Kreskowiak27-Apr-07 4:14
mveDave Kreskowiak27-Apr-07 4:14 
QuestionHow to create DLL with vb.net to run with rundll32.exe Pin
Reuven Elliassi26-Apr-07 22:08
Reuven Elliassi26-Apr-07 22:08 
AnswerRe: How to create DLL with vb.net to run with rundll32.exe Pin
Christian Graus26-Apr-07 23:09
protectorChristian Graus26-Apr-07 23:09 
GeneralRe: How to create DLL with vb.net to run with rundll32.exe Pin
Reuven Elliassi26-Apr-07 23:40
Reuven Elliassi26-Apr-07 23:40 
QuestionZModem Code Pin
tomtom7626-Apr-07 21:46
tomtom7626-Apr-07 21:46 
QuestionDataGrid View Control Doubt Pin
A.Muthunagai26-Apr-07 21:39
A.Muthunagai26-Apr-07 21:39 
QuestionGetting the path of a selected file thats is to be copied Pin
aasim baltee26-Apr-07 20:27
aasim baltee26-Apr-07 20:27 
QuestionProblem while reading from CSV file in VB 6.0 Pin
virendra_00726-Apr-07 19:40
virendra_00726-Apr-07 19:40 
Dear All,
I am facing problem while reading from csv file. It is containing near around 5000 rows. My code is as follows:

Dim Tsream As TextStream
Dim AllRows() As String
Dim SingleLine() As String
Dim AllColumn() As String
Dim readcontents As String

'Reading data in text stream
Set Tstream = FSO.OpenTextFile(filetoread, ForReading, False)
readcontents = Tstream.ReadAll

'separating data of csv file as rows and storing all rows in an array
AllRows = Split(readcontents, vbCrLf)

'Reading data
For i = 0 To UBound(AllRows) - 1

'separating data as single row and storing columns in an array
AllColumn = Split(AllRows(i), ",")
a=AllCoumn(0)
b=AllCoumn(1)
. ..........
Z=AllCoumn(25)
next

But I am not getting correct value of UBound(AllRows).What may be the reason behind this? Is it due to the fact that many of the coulmns are empty in a row? When I save those csv files as text files and then try to read from the same code, everything works fine till the no. of rows are less than 1000 or so. Please tell me how to resolve this issue.



Thanks and Regards,
Virendra
AnswerRe: Problem while reading from CSV file in VB 6.0 Pin
manowj26-Apr-07 21:08
manowj26-Apr-07 21:08 
GeneralRe: Problem while reading from CSV file in VB 6.0 Pin
virendra_00726-Apr-07 22:39
virendra_00726-Apr-07 22:39 
GeneralRe: to Manoj Pin
virendra_00727-Apr-07 1:34
virendra_00727-Apr-07 1:34 
QuestionQuestions on Data Reports [modified] Pin
Kumaran21cen26-Apr-07 18:07
Kumaran21cen26-Apr-07 18:07 
QuestionToo many Filewatches! Pin
rudemusik26-Apr-07 16:58
rudemusik26-Apr-07 16:58 
AnswerRe: Too many Filewatches! Pin
KevinMac26-Apr-07 17:12
KevinMac26-Apr-07 17:12 
GeneralRe: Too many Filewatches! Pin
rudemusik27-Apr-07 1:34
rudemusik27-Apr-07 1:34 
GeneralRe: Too many Filewatches! Pin
KevinMac27-Apr-07 5:21
KevinMac27-Apr-07 5:21 
GeneralRe: Too many Filewatches! Pin
rudemusik27-Apr-07 15:43
rudemusik27-Apr-07 15:43 
QuestionC# convert problem Pin
Xmen Real 26-Apr-07 15:29
professional Xmen Real 26-Apr-07 15:29 
AnswerRe: C# convert problem Pin
MatrixCoder26-Apr-07 16:05
MatrixCoder26-Apr-07 16:05 
GeneralRe: C# convert problem Pin
Xmen Real 26-Apr-07 16:13
professional Xmen Real 26-Apr-07 16:13 
QuestionAbsolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 13:11
new_rez26-Apr-07 13:11 
AnswerRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 13:36
protectorChristian Graus26-Apr-07 13:36 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:19
new_rez26-Apr-07 14:19 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:24
new_rez26-Apr-07 14:24 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:36
protectorChristian Graus26-Apr-07 14:36 

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.