Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2003, 10:29 PM
Authorized User
 
Join Date: Jun 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tp194
Default Finding a specific character within a string

Hi everyone

I have a string with commas in it, and I need to locate all occurences of the comma, using a character search. For example, I know in PHP I could you the strpos function.

Does any one know if ASP has a similar built in function?

Thanks

Terry

 
Old October 12th, 2003, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

You cna either use the InStr function to find them, although you could also use the SPLIT function to convert the string into an array breaking on the character.
 
Old October 12th, 2003, 10:41 PM
Authorized User
 
Join Date: Jun 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tp194
Default

Thanks for the reply...is the instr similar to a substring function?

Or do I use a different function for that?

t~






Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding last instance of a character tclotworthy XSLT 3 September 27th, 2007 11:22 AM
Finding specific string martinrhague Access 7 November 2nd, 2006 12:54 PM
datagrids question -- finding a specific row bazookajoe76 C# 1 January 22nd, 2005 12:08 PM
How to retrieve specific string zorzos Excel VBA 1 August 25th, 2004 05:41 AM
finding the string before a special character srini XSLT 2 December 16th, 2003 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.