Click here to Skip to main content
15,895,011 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Convert FileOpen in .net Pin
Paul Conrad24-Jan-08 6:56
professionalPaul Conrad24-Jan-08 6:56 
GeneralRe: Convert FileOpen in .net Pin
Tom John24-Jan-08 7:04
Tom John24-Jan-08 7:04 
QuestionHow to read text / csv file by ado.net using vb.net 2005 [modified] Pin
ejaz_pk23-Jan-08 22:42
ejaz_pk23-Jan-08 22:42 
AnswerRe: How to read text / csv file by ado.net using vb.net 2005 Pin
ejaz_pk25-Jan-08 1:21
ejaz_pk25-Jan-08 1:21 
QuestionWhat is Wrong with the Following Function Pin
Vimalsoft(Pty) Ltd23-Jan-08 21:02
professionalVimalsoft(Pty) Ltd23-Jan-08 21:02 
AnswerRe: What is Wrong with the Following Function Pin
Rupesh Kumar Swami23-Jan-08 21:33
Rupesh Kumar Swami23-Jan-08 21:33 
GeneralRe: What is Wrong with the Following Function Pin
Vimalsoft(Pty) Ltd23-Jan-08 22:50
professionalVimalsoft(Pty) Ltd23-Jan-08 22:50 
AnswerRe: What is Wrong with the Following Function Pin
Steven J Jowett23-Jan-08 22:11
Steven J Jowett23-Jan-08 22:11 
Firstly you need to test for 5 characters not 4 e.g. "GEOSS" contains 5 characters
Secondly what happens if not of the conditions are true?

Personally, I would use a SELECT CASE rather than nested IFs

example :-

Private Function FindCategory(ByVal strFunc_key As String) As Integer<br />
Dim intval As Integer<br />
<br />
Select Case strFunc_key.Substring(0, 4) <br />
CASE "GEOSS"<br />
intval = 12<br />
Case = "PV000" <br />
intval = 1<br />
Case "PVDIF" <br />
intval = 2<br />
Case "PVNTR" <br />
intval = 3<br />
Case Else<br />
intval = 0<br />
End Select<br />
Return intval<br />
<br />
End Function


Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

GeneralRe: What is Wrong with the Following Function Pin
Vimalsoft(Pty) Ltd23-Jan-08 23:11
professionalVimalsoft(Pty) Ltd23-Jan-08 23:11 
GeneralUserControl Not part of form Pin
plural23-Jan-08 20:25
plural23-Jan-08 20:25 
GeneralRe: UserControl Not part of form Pin
plural23-Jan-08 20:26
plural23-Jan-08 20:26 
Generaldrag and drop in two listbox Pin
sumit703423-Jan-08 19:12
sumit703423-Jan-08 19:12 
GeneralRe: drag and drop in two listbox Pin
C1AllenS25-Jan-08 0:17
C1AllenS25-Jan-08 0:17 
GeneralRe: drag and drop in two listbox Pin
sumit703422-Oct-08 22:48
sumit703422-Oct-08 22:48 
GeneralTo get focus on textbox Pin
sumit703423-Jan-08 18:07
sumit703423-Jan-08 18:07 
GeneralRe: To get focus on textbox Pin
Paul Conrad23-Jan-08 18:13
professionalPaul Conrad23-Jan-08 18:13 
GeneralRe: To get focus on textbox Pin
sumit703423-Jan-08 18:24
sumit703423-Jan-08 18:24 
GeneralRe: To get focus on textbox Pin
Paul Conrad23-Jan-08 18:42
professionalPaul Conrad23-Jan-08 18:42 
GeneralRe: To get focus on textbox Pin
sumit703423-Jan-08 18:57
sumit703423-Jan-08 18:57 
GeneralRe: To get focus on textbox Pin
Vimalsoft(Pty) Ltd24-Jan-08 1:57
professionalVimalsoft(Pty) Ltd24-Jan-08 1:57 
GeneralRe: To get focus on textbox Pin
Johan Hakkesteegt25-Jan-08 2:35
Johan Hakkesteegt25-Jan-08 2:35 
GeneralCapturing stdout and stderr when running a subcommand (WSH) Pin
orev23-Jan-08 11:52
orev23-Jan-08 11:52 
Generalthree level datagrid drill down Pin
uglyeyes23-Jan-08 10:59
uglyeyes23-Jan-08 10:59 
QuestionPossible to know when copy or paste is done? Pin
abbabbabba23-Jan-08 7:02
abbabbabba23-Jan-08 7:02 
Generalcommunication state Pin
Agbaria Ahmad23-Jan-08 6:31
Agbaria Ahmad23-Jan-08 6:31 

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.