Click here to Skip to main content
       

Visual Basic

 
Questionpuzzle game Pinmemberjasdeep788221-Dec-12 5:11 
AnswerRe: puzzle game PinmemberDavid Mujica21-Dec-12 5:33 
AnswerRe: puzzle game PinmvpRichard MacCutchan21-Dec-12 7:30 
QuestionTimer for Internet connection Pinmemberbolepks20-Dec-12 9:51 
AnswerRe: Timer for Internet connection PinmvpDave Kreskowiak20-Dec-12 10:46 
GeneralRe: Timer for Internet connection Pinmemberbolepks20-Dec-12 10:56 
GeneralRe: Timer for Internet connection PinmvpDave Kreskowiak21-Dec-12 5:11 
Questioninstr function not accepting arguments VB.net Pinmemberxman12519-Dec-12 3:10 
Cannot get instr function to work .net?
 
Using VB.net
For some reason, the 'instr' function and the 'string.indexof' is the same.
The problem is that one of the 2 string arguments, is a variable that is passed from the calling subroutine (not the literal characters) and it does not recognise the 'match'.
When I type in the literal characters with " " -- it works ok.
Here is a copy of the line that is not working.
'm' is the positional marker / 'largetxt' the body that is being searched and 'smalltxt' is the string that is being searched for.

intx = InStr(m, mainTxt, smallTxt)

The variable 'smallTxt' is the problem ---- if I have:
intx = InStr(m, mainTxt, "house") --- it works ok

Also ... same thing for:
intx = largeTxt.IndexOf(smallTxt, m)
Cheers
AnswerRe: instr function not accepting arguments VB.net PinmvpDave Kreskowiak19-Dec-12 4:13 
AnswerRe: instr function not accepting arguments VB.net PinmemberZaf Khan19-Dec-12 6:37 
GeneralRe: instr function not accepting arguments VB.net Pinmemberxman12519-Dec-12 21:44 
GeneralRe: instr function not accepting arguments VB.net Pinmemberxman12519-Dec-12 21:50 
GeneralRe: instr function not accepting arguments VB.net PinmemberZaf Khan19-Dec-12 22:05 
AnswerRe: instr function not accepting arguments VB.net PinmemberEddy Vluggen20-Dec-12 2:56 
QuestionRe: instr function not accepting arguments VB.net PinmemberZaf Khan19-Dec-12 22:02 
GeneralRe: instr function not accepting arguments VB.net PinmvpDave Kreskowiak20-Dec-12 2:47 
AnswerRe: instr function not accepting arguments VB.net PinmemberMike Meinz23-Jan-13 4:36 
QuestionIs it possible to change Import directives dynamically at run time. [modified] PinmemberMember 342716218-Dec-12 11:32 
AnswerRe: Is it possible to change Import directives dynamically at run time. PinmemberEddy Vluggen18-Dec-12 22:57 
Questionconcatenate 2 scripts PinmemberNitro7617-Dec-12 3:54 
AnswerRe: concatenate 2 scripts PinmemberEddy Vluggen18-Dec-12 22:55 
Questionsystem.net.mail - manage multiple attachment Pinmemberalejx14-Dec-12 14:00 
AnswerRe: system.net.mail - manage multiple attachment PinmemberEddy Vluggen17-Dec-12 2:17 
QuestionHelp with Class Library and "Roll Your Own MsgBox" Pinmemberw4uoa13-Dec-12 6:19 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" PinmemberSimon_Whale13-Dec-12 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 17 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid