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

Visual Basic

 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Dave Kreskowiak13-Jul-07 4:50
mveDave Kreskowiak13-Jul-07 4:50 
JokeRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Paul Conrad15-Jul-07 5:45
professionalPaul Conrad15-Jul-07 5:45 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Rupesh Kumar Swami13-Jul-07 6:53
Rupesh Kumar Swami13-Jul-07 6:53 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Dave Kreskowiak13-Jul-07 7:00
mveDave Kreskowiak13-Jul-07 7:00 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) Pin
Paul Conrad15-Jul-07 5:47
professionalPaul Conrad15-Jul-07 5:47 
GeneralRe: Passing parameter to hardcoded SQL statement (non Stored Procedure) [modified] Pin
Rupesh Kumar Swami13-Jul-07 6:54
Rupesh Kumar Swami13-Jul-07 6:54 
QuestionHelp! Read Unicode Text File to VB program Pin
jackie83sg200513-Jul-07 2:58
jackie83sg200513-Jul-07 2:58 
AnswerRe: Help! Read Unicode Text File to VB program Pin
Christian Graus13-Jul-07 3:29
protectorChristian Graus13-Jul-07 3:29 
jackie83sg2005 wrote:
Dim s1(100) As Char
Dim n2 As Integer
n2 = 0
While sr.Peek >= -1
n1 = sr.Read()
s1(n2) = Chr(n1)
n2 += 1
End While


Wow - what a mess.

1 - why do you limit yourself to 100 characters, instead of using a List or something ?
2 - why do you read one character at a time ?

File.ReadAllText will read an entire file in one line of code.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Help! Read Unicode Text File to VB program Pin
Paul Conrad13-Jul-07 4:29
professionalPaul Conrad13-Jul-07 4:29 
GeneralRe: Help! Read Unicode Text File to VB program Pin
jackie83sg200513-Jul-07 4:50
jackie83sg200513-Jul-07 4:50 
GeneralRe: Help! Read Unicode Text File to VB program Pin
Dave Kreskowiak13-Jul-07 4:54
mveDave Kreskowiak13-Jul-07 4:54 
GeneralRe: Help! Read Unicode Text File to VB program Pin
jackie83sg200513-Jul-07 15:16
jackie83sg200513-Jul-07 15:16 
QuestionArray -> listview1.groups.addrange Pin
svh198513-Jul-07 2:45
svh198513-Jul-07 2:45 
AnswerRe: Array -> listview1.groups.addrange Pin
Dave Kreskowiak13-Jul-07 4:19
mveDave Kreskowiak13-Jul-07 4:19 
GeneralRe: Array -> listview1.groups.addrange Pin
svh198513-Jul-07 4:39
svh198513-Jul-07 4:39 
GeneralRe: Array -> listview1.groups.addrange Pin
Dave Kreskowiak13-Jul-07 4:47
mveDave Kreskowiak13-Jul-07 4:47 
GeneralRe: Array -> listview1.groups.addrange Pin
svh198513-Jul-07 4:55
svh198513-Jul-07 4:55 
GeneralRe: Array -> listview1.groups.addrange Pin
Dave Kreskowiak13-Jul-07 15:42
mveDave Kreskowiak13-Jul-07 15:42 
Questionhow to know a structure of a project Pin
Santosh Kumar Maharana13-Jul-07 2:41
Santosh Kumar Maharana13-Jul-07 2:41 
AnswerRe: how to know a structure of a project Pin
Dave Kreskowiak13-Jul-07 3:58
mveDave Kreskowiak13-Jul-07 3:58 
AnswerRe: authentication help Pin
Dave Kreskowiak13-Jul-07 3:55
mveDave Kreskowiak13-Jul-07 3:55 
GeneralRe: authentication help Pin
Paul Conrad13-Jul-07 4:30
professionalPaul Conrad13-Jul-07 4:30 
QuestionHow to get Binary File into XML and then back Pin
Rizwan Bashir13-Jul-07 1:42
Rizwan Bashir13-Jul-07 1:42 
AnswerRe: How to get Binary File into XML and then back Pin
SHatchard13-Jul-07 2:09
SHatchard13-Jul-07 2:09 
GeneralRe: How to get Binary File into XML and then back Pin
Rizwan Bashir13-Jul-07 2:27
Rizwan Bashir13-Jul-07 2:27 

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.