Click here to Skip to main content
12,241,564 members (55,229 online)

Visual Basic

 
Questionpuzzle game Pin
jasdeep788221-Dec-12 5:11
memberjasdeep788221-Dec-12 5:11 
AnswerRe: puzzle game Pin
David Mujica21-Dec-12 5:33
memberDavid Mujica21-Dec-12 5:33 
AnswerRe: puzzle game Pin
Richard MacCutchan21-Dec-12 7:30
mvpRichard MacCutchan21-Dec-12 7:30 
QuestionTimer for Internet connection Pin
bolepks20-Dec-12 9:51
memberbolepks20-Dec-12 9:51 
AnswerRe: Timer for Internet connection Pin
Dave Kreskowiak20-Dec-12 10:46
mvpDave Kreskowiak20-Dec-12 10:46 
GeneralRe: Timer for Internet connection Pin
bolepks20-Dec-12 10:56
memberbolepks20-Dec-12 10:56 
GeneralRe: Timer for Internet connection Pin
Dave Kreskowiak21-Dec-12 5:11
mvpDave Kreskowiak21-Dec-12 5:11 
Questioninstr function not accepting arguments VB.net Pin
xman12519-Dec-12 3:10
memberxman12519-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 Pin
Dave Kreskowiak19-Dec-12 4:13
mvpDave Kreskowiak19-Dec-12 4:13 
AnswerRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 6:37
memberZaf Khan19-Dec-12 6:37 
GeneralRe: instr function not accepting arguments VB.net Pin
xman12519-Dec-12 21:44
memberxman12519-Dec-12 21:44 
GeneralRe: instr function not accepting arguments VB.net Pin
xman12519-Dec-12 21:50
memberxman12519-Dec-12 21:50 
GeneralRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 22:05
memberZaf Khan19-Dec-12 22:05 
AnswerRe: instr function not accepting arguments VB.net Pin
Eddy Vluggen20-Dec-12 2:56
memberEddy Vluggen20-Dec-12 2:56 
QuestionRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 22:02
memberZaf Khan19-Dec-12 22:02 
GeneralRe: instr function not accepting arguments VB.net Pin
Dave Kreskowiak20-Dec-12 2:47
mvpDave Kreskowiak20-Dec-12 2:47 
AnswerRe: instr function not accepting arguments VB.net Pin
Mike Meinz23-Jan-13 4:36
memberMike Meinz23-Jan-13 4:36 
QuestionIs it possible to change Import directives dynamically at run time. Pin
Member 342716218-Dec-12 11:32
memberMember 342716218-Dec-12 11:32 
AnswerRe: Is it possible to change Import directives dynamically at run time. Pin
Eddy Vluggen18-Dec-12 22:57
memberEddy Vluggen18-Dec-12 22:57 
Questionconcatenate 2 scripts Pin
Nitro7617-Dec-12 3:54
memberNitro7617-Dec-12 3:54 
AnswerRe: concatenate 2 scripts Pin
Eddy Vluggen18-Dec-12 22:55
memberEddy Vluggen18-Dec-12 22:55 
Questionsystem.net.mail - manage multiple attachment Pin
alejx14-Dec-12 14:00
memberalejx14-Dec-12 14:00 
AnswerRe: system.net.mail - manage multiple attachment Pin
Eddy Vluggen17-Dec-12 2:17
memberEddy Vluggen17-Dec-12 2:17 
QuestionHelp with Class Library and "Roll Your Own MsgBox" Pin
w4uoa13-Dec-12 6:19
memberw4uoa13-Dec-12 6:19 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Simon_Whale13-Dec-12 6:38
memberSimon_Whale13-Dec-12 6:38 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 29 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid