Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 11th, 2003, 10:29 PM
Authorized User
 
Join Date: Jun 2003
Location: , , USA.
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

Reply With Quote
  #2 (permalink)  
Old October 12th, 2003, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
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.
Reply With Quote
  #3 (permalink)  
Old October 12th, 2003, 10:41 PM
Authorized User
 
Join Date: Jun 2003
Location: , , USA.
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~

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:40 AM.


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