Print Page | Close Window

String manipulation

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=259
Printed Date: 28 March 2026 at 10:23pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: String manipulation
Posted By: Nathan
Subject: String manipulation
Date Posted: 17 February 2003 at 2:22pm

Can anyone help with String functions.

How can I 'step' through a string (using a loop) to search for a particular char. I need to be able to reference each letter in turn.

Thanks

Nathan




Replies:
Posted By: MorningZ
Date Posted: 17 February 2003 at 2:43pm
strToCheck = here's the string

For i = 1 to Len(strToCheck)
    ThisChar = Mid(strToCheck,i,1)
    do your comparison/check here
Next


-------------
Contribute to the working anarchy we fondly call the Internet



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net