Click here to Skip to main content
15,913,722 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Custom Installation Pin
Richard MacCutchan3-Jul-14 5:21
mveRichard MacCutchan3-Jul-14 5:21 
GeneralRe: Custom Installation Pin
STSanford3-Jul-14 5:24
STSanford3-Jul-14 5:24 
GeneralRe: Custom Installation Pin
Richard MacCutchan3-Jul-14 5:37
mveRichard MacCutchan3-Jul-14 5:37 
GeneralRe: Custom Installation Pin
STSanford3-Jul-14 5:42
STSanford3-Jul-14 5:42 
AnswerRe: Custom Installation Pin
GuyThiebaut3-Jul-14 5:56
professionalGuyThiebaut3-Jul-14 5:56 
QuestionChange db connection dynamically in vb.net for reportviewer Pin
Keval Savani3-Jul-14 0:10
Keval Savani3-Jul-14 0:10 
QuestionCreating zip files limited to size Pin
ctrl+s1-Jul-14 7:38
ctrl+s1-Jul-14 7:38 
AnswerRe: Creating zip files limited to size Pin
Dave Kreskowiak1-Jul-14 12:18
mveDave Kreskowiak1-Jul-14 12:18 
AnswerRe: Creating zip files limited to size Pin
Richard Deeming2-Jul-14 1:30
mveRichard Deeming2-Jul-14 1:30 
Questionform1 as background of form2 in vb.net Pin
khei-chan00729-Jun-14 21:03
khei-chan00729-Jun-14 21:03 
AnswerRe: form1 as background of form2 in vb.net Pin
Dave Kreskowiak30-Jun-14 1:54
mveDave Kreskowiak30-Jun-14 1:54 
QuestionReport Viewer in Code Behind Pin
jkirkerx29-Jun-14 10:19
professionaljkirkerx29-Jun-14 10:19 
GeneralI was able to populate the tablix with static data Pin
jkirkerx29-Jun-14 11:19
professionaljkirkerx29-Jun-14 11:19 
QuestionDATAGRIDVIEW ARRAY QUESTION VB.NET 2012 Pin
AntonyJackson26-Jun-14 0:04
AntonyJackson26-Jun-14 0:04 
Questionvb.net drop down list insidelist view Pin
walsh2725-Jun-14 0:17
walsh2725-Jun-14 0:17 
Questionsybase ASE 15.7 with VB.Net framework 1.1 connection error Pin
ashishj01624-Jun-14 19:30
ashishj01624-Jun-14 19:30 
AnswerRe: sybase ASE 15.7 with VB.Net framework 1.1 connection error Pin
Dave Kreskowiak25-Jun-14 2:47
mveDave Kreskowiak25-Jun-14 2:47 
QuestionNeed to find html tags in strings Pin
Amir Tallap22-Jun-14 16:49
Amir Tallap22-Jun-14 16:49 
AnswerRe: Need to find html tags in strings Pin
thatraja22-Jun-14 22:10
professionalthatraja22-Jun-14 22:10 
QuestionError Trying to connect to a database after restoring Pin
dilkonika22-Jun-14 11:17
dilkonika22-Jun-14 11:17 
AnswerRe: Error Trying to connect to a database after restoring Pin
Eddy Vluggen23-Jun-14 7:12
professionalEddy Vluggen23-Jun-14 7:12 
GeneralRe: Error Trying to connect to a database after restoring Pin
dilkonika23-Jun-14 8:24
dilkonika23-Jun-14 8:24 
GeneralRe: Error Trying to connect to a database after restoring Pin
Eddy Vluggen25-Jun-14 8:15
professionalEddy Vluggen25-Jun-14 8:15 
QuestionWhy does this Array.FindIndex for case insensitive return 2 not 0 Pin
QuickBooksDev21-Jun-14 4:15
QuickBooksDev21-Jun-14 4:15 
AnswerRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Dave Kreskowiak21-Jun-14 5:38
mveDave Kreskowiak21-Jun-14 5:38 
It says 2 because you're asking the FindIndex function to return the first element where the x.IndexOf call returns a non-zero value, and that's at index = 2.

In most languages, a non-zero value is always considered True and a zero value is False.

Read up on the IndexOf() and String.Compare() documentation and you'll understand why it's not behaving like you think it should.

To get it to work like you want, you'd change that line of code to:
i = Array.FindIndex(pAR, Function(x) x.IndexOf(s, StringComparison.InvariantCultureIgnoreCase) = 0)


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.