search for character " in a string variable using instr function

2 views
Skip to first unread message

.NetIndia

unread,
Nov 4, 2005, 4:08:49 AM11/4/05
to dotNetIndia
hi all
i try to search for character " in a string variable using instr
function in vb, but something gone wrong.my code is

MyPos = Instr(4, SearchString," " ", 1)

can suggest wat is the correct way to search for " in instr function?

thx in advance.


--
Regards,
.NetIndia Group,
"There is no delight in owning anything unshared."
"A book lying idle on a shelf is wasted ammunition. Like money, books must be kept in constant circulation. Lend and borrow to the maximum -- of both books and money! But especially books, for books represent infinitely more than money. A book is not only a friend, it makes friends for you. When you have possessed a book with mind and spirit, you are enriched. But when you pass it on you are enriched threefold."

Blog:http://dotnetindia.blogspot.com/
Technical Discussion: Techdot...@googlegroups.com
http://groups.google.com/group/TechdotNetIndia
Job Section         : TechdotNet...@googlegroups.com
http://groups.google.com/group/TechdotNetIndia-Jobs

BabuLives

unread,
Nov 4, 2005, 4:20:56 AM11/4/05
to .NetIndia
i think this one will work...

MyPos = Instr(4, SearchString," "" ", 1)


Regards,
Satheesh

Girivasan

unread,
Nov 9, 2005, 6:45:25 AM11/9/05
to Techdot...@googlegroups.com
use without space, like
Reply all
Reply to author
Forward
0 new messages