50,230 Members
3 added today
250,691 Resources
51 added today

All Devdex   All XMLdex   Current Category
XMLdex > Forums & Newsgroups > Newsgroups > microsoft.public.xml Add this category to My Favorites

View Message Thread  (49 replies)

Results 1 - 10 of 50 Next Page »

Instr problem in VB5 Add this thread to My Favorites
From: Dennis Rose
Date Posted: 6/2/2010 10:32:00 AM

I need to use the following string as a "Search String" in an Instr
instruction:

<name part="first">

The quotes around the word "first" are causing the instruction to fail.

How can I test for this Search String?

I have checked Google and tried single quotes and double quotes and chr(34)
around around the word "first" all with no success.

The code I am using is"
SearchString = "<name part="first">"
StringPos = Instr(1, InputDataLine, StringSearch)
If StringPos > 0 then ......

Please help!!

Instr problem in VB5
From: Dennis Rose
Date Posted: 6/2/2010 10:33:00 AM

I need to use the following string as a "Search String" in an Instr
instruction:

<name part="first">

The quotes around the word "first" are causing the instruction to fail.

How can I test for this Search String?

I have checked Google and tried single quotes and double quotes and chr(34)
around around the word "first" all with no success.

The code I am using is"
SearchString = "<name part="first">"
StringPos = Instr(1, InputDataLine, StringSearch)
If StringPos > 0 then ......

Please help!!

Instr problem in VB5
From: Dennis Rose
Date Posted: 6/2/2010 10:34:00 AM

I need to use the following string as a "Search String" in an Instr
instruction:

<name part="first">

The quotes around the word "first" are causing the instruction to fail.

How can I test for this Search String?

I have checked Google and tried single quotes and double quotes and chr(34)
around around the word "first" all with no success.

The code I am using is"
SearchString = "<name part="first">"
StringPos = Instr(1, InputDataLine, StringSearch)
If StringPos > 0 then ......

Please help!!

Instr problem in VB5
From: Dennis Rose
Date Posted: 6/2/2010 10:35:00 AM

I need to use the following string as a "Search String" in an Instr
instruction:

<name part="first">

The quotes around the word "first" are causing the instruction to fail.

How can I test for this Search String?

I have checked Google and tried single quotes and double quotes and chr(34)
around around the word "first" all with no success.

The code I am using is"
SearchString = "<name part="first">"
StringPos = Instr(1, InputDataLine, StringSearch)
If StringPos > 0 then ......

Please help!!

Re: Instr problem in VB5
From: Patrice
Date Posted: 6/2/2010 10:45:00 AM

Hello,

> <name part="first">
>
> The quotes around the word "first" are causing the instruction to fail.

You can include " in a literal string by using "" (double the double quote
character). Here it will be :

SearchString = "<name part=""first"">"

> I have checked Google and tried single quotes and double quotes and
> chr(34)
> around around the word "first" all with no success.

If you really tried

SearchString = "<name part=""first"">" then it could be be that you really
don't have this string in "InputDataLine".

For example could it be that you are searching actually for :
<name part="first"/>

Note the trailing /> rather than just >

What if you try with hardcoded values to make sure this is not just that
InputDataLine doesn't contain what you think ?

--
Patrice


Re: Instr problem in VB5
From: Patrice
Date Posted: 6/2/2010 10:46:00 AM

Hello,

> <name part="first">
>
> The quotes around the word "first" are causing the instruction to fail.

You can include " in a literal string by using "" (double the double quote
character). Here it will be :

SearchString = "<name part=""first"">"

> I have checked Google and tried single quotes and double quotes and
> chr(34)
> around around the word "first" all with no success.

If you really tried

SearchString = "<name part=""first"">" then it could be be that you really
don't have this string in "InputDataLine".

For example could it be that you are searching actually for :
<name part="first"/>

Note the trailing /> rather than just >

What if you try with hardcoded values to make sure this is not just that
InputDataLine doesn't contain what you think ?

--
Patrice


Re: Instr problem in VB5
From: Patrice
Date Posted: 6/2/2010 10:47:00 AM

Hello,

> <name part="first">
>
> The quotes around the word "first" are causing the instruction to fail.

You can include " in a literal string by using "" (double the double quote
character). Here it will be :

SearchString = "<name part=""first"">"

> I have checked Google and tried single quotes and double quotes and
> chr(34)
> around around the word "first" all with no success.

If you really tried

SearchString = "<name part=""first"">" then it could be be that you really
don't have this string in "InputDataLine".

For example could it be that you are searching actually for :
<name part="first"/>

Note the trailing /> rather than just >

What if you try with hardcoded values to make sure this is not just that
InputDataLine doesn't contain what you think ?

--
Patrice


Re: Instr problem in VB5
From: Bob Butler
Date Posted: 6/2/2010 10:49:00 AM

"Dennis Rose" <Dennis Rose@discussions.microsoft.com> wrote in message
news:1EDE11CE-8D50-4A18-B59C-95C45B849EFC@microsoft.com...
>I need to use the following string as a "Search String" in an Instr
> instruction:
>
> <name part="first">
>
> The quotes around the word "first" are causing the instruction to fail.
>
> How can I test for this Search String?
>
> I have checked Google and tried single quotes and double quotes and
> chr(34)
> around around the word "first" all with no success.
>
> The code I am using is"
> SearchString = "<name part="first">"

SearchString = "<name part=""first"">" ' two quotes in a row gives one quote
in the result

> StringPos = Instr(1, InputDataLine, StringSearch)
> If StringPos > 0 then ......
>
> Please help!!

Re: Instr problem in VB5
From: Patrice
Date Posted: 6/2/2010 10:49:00 AM

Hello,

> <name part="first">
>
> The quotes around the word "first" are causing the instruction to fail.

You can include " in a literal string by using "" (double the double quote
character). Here it will be :

SearchString = "<name part=""first"">"

> I have checked Google and tried single quotes and double quotes and
> chr(34)
> around around the word "first" all with no success.

If you really tried

SearchString = "<name part=""first"">" then it could be be that you really
don't have this string in "InputDataLine".

For example could it be that you are searching actually for :
<name part="first"/>

Note the trailing /> rather than just >

What if you try with hardcoded values to make sure this is not just that
InputDataLine doesn't contain what you think ?

--
Patrice


Re: Instr problem in VB5
From: Bob Butler
Date Posted: 6/2/2010 10:50:00 AM

"Dennis Rose" <Dennis Rose@discussions.microsoft.com> wrote in message
news:1EDE11CE-8D50-4A18-B59C-95C45B849EFC@microsoft.com...
>I need to use the following string as a "Search String" in an Instr
> instruction:
>
> <name part="first">
>
> The quotes around the word "first" are causing the instruction to fail.
>
> How can I test for this Search String?
>
> I have checked Google and tried single quotes and double quotes and
> chr(34)
> around around the word "first" all with no success.
>
> The code I am using is"
> SearchString = "<name part="first">"

SearchString = "<name part=""first"">" ' two quotes in a row gives one quote
in the result

> StringPos = Instr(1, InputDataLine, StringSearch)
> If StringPos > 0 then ......
>
> Please help!!

Results 1 - 10 of 50 Next Page »

 

Would you like to track this thread?

By adding this News Thread to your Favorites Area you can refer to it later with just a click of the mouse. Also you can optionally be notified instantly whenever there are any replies posted to this Thread. To add this Thread to your Favorites Area just click on the red arrow next to the subject of the thread above Add this thread to My Favorites.



ASP.NET Chart Control.
Charts from your Database.
Live Demo & FREE Trial!

ASP ArticlesThis category has been added to your weekly newsletter
ASP Web Sites
ADSI & WSH BooksThis category has been added to your weekly newsletter
FREE ComponentsThis category has been added to your weekly newsletter
ASP EventsThis category has been added to your weekly newsletter
ASP HeadlinesThis category has been added to your weekly newsletter

CSharp ArticlesThis category has been added to your weekly newsletter
C# Web SitesThis category has been added to your weekly newsletter

SQL ArticlesThis category has been added to your weekly newsletter
SQL Events
SQL HeadlinesThis category has been added to your weekly newsletter
SQL Jobs

Jobs in CaliforniaThis category has been added to your weekly newsletter

XML ArticlesThis category has been added to your weekly newsletter
XML BooksThis category has been added to your weekly newsletter
XML Web Sites
XML Tutorials

free asp host

"Alex Homer"This search has been added to your weekly newsletter

Edit My Favorites Edit Profile & Favorites

 

 

 

 

 




Developersdex Home | ASP | C# | SQL | VB | XML | Gurus
Add Your Link | Add Your Code | FAQ | Advertise | Link To Us | Contact Us |
Copyright © 2010 Developersdex™. All rights reserved.