Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioninstr function not accepting arguments VB.net Pin
xman12519-Dec-12 2:10
xman12519-Dec-12 2:10 
AnswerRe: instr function not accepting arguments VB.net Pin
Dave Kreskowiak19-Dec-12 3:13
mveDave Kreskowiak19-Dec-12 3:13 
AnswerRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 5:37
Zaf Khan19-Dec-12 5:37 
GeneralRe: instr function not accepting arguments VB.net Pin
xman12519-Dec-12 20:44
xman12519-Dec-12 20:44 
GeneralRe: instr function not accepting arguments VB.net Pin
xman12519-Dec-12 20:50
xman12519-Dec-12 20:50 
GeneralRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 21:05
Zaf Khan19-Dec-12 21:05 
AnswerRe: instr function not accepting arguments VB.net Pin
Eddy Vluggen20-Dec-12 1:56
professionalEddy Vluggen20-Dec-12 1:56 
QuestionRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 21:02
Zaf Khan19-Dec-12 21:02 
Did you try the code portion i added in my thread?
I tested it and it works fine...

obviously we can see the word AND is in the string JACK AND JILL.....

It makes me wonder what the ACTUAL strings are that you are comparing.
Maybe you could add them in a thread?

Its highly unlikely that the IndexOf method/function isnot working!

Its quite possible though that your installation of the development environment may have a corrupted file and possibly the next step would be to uninstall and re-install it again.

Still though, maybe you could save some time by adding your strings which your using in the comparision or even to upload the ACTUAL code block which is causing the offence?

Also, if your searching for a single character without specifying the number of consecutive characters to search, then the character must be in UNICODE, maybe that is of relavance?

Finally IndexOf is Zero based, so the FIRST character is position 0 then increases upwards, meaning it does not start with 1 but with zero.

Looking at the string "JACK AND JILL" and searching for a match of "AND" the code block I gave you states a match is found at charcter position 5, which taking it from a zero based index is ACTUALLY chracter 6 when starting from 1...

So maybe as a last resort you could subtract one from your start point (or start at zero anyway) and look for a match you KNOW exists in your string.
GeneralRe: instr function not accepting arguments VB.net Pin
Dave Kreskowiak20-Dec-12 1:47
mveDave Kreskowiak20-Dec-12 1:47 
AnswerRe: instr function not accepting arguments VB.net Pin
Mike Meinz23-Jan-13 3:36
Mike Meinz23-Jan-13 3:36 
QuestionIs it possible to change Import directives dynamically at run time. Pin
Member 342716218-Dec-12 10:32
Member 342716218-Dec-12 10:32 
AnswerRe: Is it possible to change Import directives dynamically at run time. Pin
Eddy Vluggen18-Dec-12 21:57
professionalEddy Vluggen18-Dec-12 21:57 
Questionconcatenate 2 scripts Pin
Nitro7617-Dec-12 2:54
Nitro7617-Dec-12 2:54 
AnswerRe: concatenate 2 scripts Pin
Eddy Vluggen18-Dec-12 21:55
professionalEddy Vluggen18-Dec-12 21:55 
Questionsystem.net.mail - manage multiple attachment Pin
alejx14-Dec-12 13:00
alejx14-Dec-12 13:00 
AnswerRe: system.net.mail - manage multiple attachment Pin
Eddy Vluggen17-Dec-12 1:17
professionalEddy Vluggen17-Dec-12 1:17 
QuestionHelp with Class Library and "Roll Your Own MsgBox" Pin
w4uoa13-Dec-12 5:19
w4uoa13-Dec-12 5:19 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Simon_Whale13-Dec-12 5:38
Simon_Whale13-Dec-12 5:38 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Richard MacCutchan13-Dec-12 5:40
mveRichard MacCutchan13-Dec-12 5:40 
Questionnewbie Pin
vaskoedo12-Dec-12 2:16
vaskoedo12-Dec-12 2:16 
AnswerRe: newbie Pin
Eddy Vluggen12-Dec-12 3:02
professionalEddy Vluggen12-Dec-12 3:02 
QuestionExcel.XlChartType.xlLine chart not draw using VB.Net Pin
D.Manivelan11-Dec-12 19:32
D.Manivelan11-Dec-12 19:32 
AnswerRe: Excel.XlChartType.xlLine chart not draw using VB.Net Pin
Eddy Vluggen12-Dec-12 3:00
professionalEddy Vluggen12-Dec-12 3:00 
QuestionMake a DataGridView column editable Pin
John Waclawski11-Dec-12 11:01
John Waclawski11-Dec-12 11:01 
AnswerRe: Make a DataGridView column editable Pin
Eddy Vluggen12-Dec-12 2:58
professionalEddy Vluggen12-Dec-12 2:58 

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.