Click here to Skip to main content
       

Visual Basic

 
GeneralRe: getting right string value from textbox with arabic text in vb6 PinmvpDave Kreskowiak24-Dec-12 5:06 
AnswerRe: getting right string value from textbox with arabic text in vb6 PinmemberEddy Vluggen25-Dec-12 8:26 
AnswerHelp, Win32_DefragAnalysis in VB6 code Pinmembernghia09t322-Dec-12 3:26 
GeneralRe: Help, Win32_DefragAnalysis in VB6 code PinmemberEddy Vluggen23-Dec-12 14:15 
QuestionListview vb6.0 PinmemberAinnop22-Dec-12 3:08 
AnswerRe: Listview vb6.0 PinmemberProgramFOX22-Dec-12 3:19 
Questionpuzzle game Pinmemberjasdeep788221-Dec-12 4:11 
AnswerRe: puzzle game PinmemberDavid Mujica21-Dec-12 4:33 
AnswerRe: puzzle game PinmvpRichard MacCutchan21-Dec-12 6:30 
QuestionTimer for Internet connection Pinmemberbolepks20-Dec-12 8:51 
AnswerRe: Timer for Internet connection PinmvpDave Kreskowiak20-Dec-12 9:46 
GeneralRe: Timer for Internet connection Pinmemberbolepks20-Dec-12 9:56 
GeneralRe: Timer for Internet connection PinmvpDave Kreskowiak21-Dec-12 4:11 
Questioninstr function not accepting arguments VB.net Pinmemberxman12519-Dec-12 2: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 3:13 
AnswerRe: instr function not accepting arguments VB.net PinmemberZaf Khan19-Dec-12 5:37 
GeneralRe: instr function not accepting arguments VB.net Pinmemberxman12519-Dec-12 20:44 
GeneralRe: instr function not accepting arguments VB.net Pinmemberxman12519-Dec-12 20:50 
GeneralRe: instr function not accepting arguments VB.net PinmemberZaf Khan19-Dec-12 21:05 
AnswerRe: instr function not accepting arguments VB.net PinmemberEddy Vluggen20-Dec-12 1:56 
QuestionRe: instr function not accepting arguments VB.net PinmemberZaf Khan19-Dec-12 21:02 
GeneralRe: instr function not accepting arguments VB.net PinmvpDave Kreskowiak20-Dec-12 1:47 
AnswerRe: instr function not accepting arguments VB.net PinmemberMike Meinz23-Jan-13 3:36 
QuestionIs it possible to change Import directives dynamically at run time. [modified] PinmemberMember 342716218-Dec-12 10:32 
AnswerRe: Is it possible to change Import directives dynamically at run time. PinmemberEddy Vluggen18-Dec-12 21:57 
Questionconcatenate 2 scripts PinmemberNitro7617-Dec-12 2:54 
AnswerRe: concatenate 2 scripts PinmemberEddy Vluggen18-Dec-12 21:55 
Questionsystem.net.mail - manage multiple attachment Pinmemberalejx14-Dec-12 13:00 
AnswerRe: system.net.mail - manage multiple attachment PinmemberEddy Vluggen17-Dec-12 1:17 
QuestionHelp with Class Library and "Roll Your Own MsgBox" Pinmemberw4uoa13-Dec-12 5:19 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" PinmemberSimon_Whale13-Dec-12 5:38 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" PinmvpRichard MacCutchan13-Dec-12 5:40 
Questionnewbie Pinmembervaskoedo12-Dec-12 2:16 
AnswerRe: newbie PinmemberEddy Vluggen12-Dec-12 3:02 
QuestionExcel.XlChartType.xlLine chart not draw using VB.Net PinmemberD.Manivelan11-Dec-12 19:32 
AnswerRe: Excel.XlChartType.xlLine chart not draw using VB.Net PinmemberEddy Vluggen12-Dec-12 3:00 
QuestionMake a DataGridView column editable PinmemberJohn Waclawski11-Dec-12 11:01 
AnswerRe: Make a DataGridView column editable PinmemberEddy Vluggen12-Dec-12 2:58 
Questionportability/deployment, VB/Database PinmemberMember 838594911-Dec-12 4:34 
AnswerRe: portability/deployment, VB/Database PinmemberEddy Vluggen11-Dec-12 4:51 
GeneralRe: portability/deployment, VB/Database PinmemberMember 838594911-Dec-12 5:04 
QuestionUSBMuxd PinmemberD_Wilbur10-Dec-12 9:19 
AnswerRe: USBMuxd PinmemberEddy Vluggen11-Dec-12 2:24 
Questionneed vb.net DMS system PinmemberMember 967170910-Dec-12 0:10 
AnswerRe: need vb.net DMS system PinmvpDave Kreskowiak10-Dec-12 2:21 
GeneralRe: need vb.net DMS system PinmemberSimon_Whale11-Dec-12 5:36 
AnswerRe: need vb.net DMS system PinmemberPaul Conrad13-Dec-12 8:56 
AnswerRe: need vb.net DMS system PinmemberPrissySC26-Dec-12 2:48 
Questionparent/child bindingsource save new fails PinmemberPrissySC8-Dec-12 11:03 
AnswerRe: parent/child bindingsource save new fails PinmemberEddy Vluggen11-Dec-12 2:21 

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.141030.1 | Last Updated 30 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid