` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Proper case names
2008-08-21 -- Randy Goodhew
 
Here I've added the additional single character checks and optimized the code. !---------------------------------------------- Proper PROCEDURE(STRING s) UpperFlag LONG,AUTO J LONG,AUTO CODE s = LOWER(s) UpperFlag = TRUE LOOP J = 1 TO SIZE(s) CASE s[J] OF '<32>' !Space Char OROF '<34>' !Double Quote " OROF '<39>' !single quote ' OROF '<45>' !single dash - OROF '0' TO '9' UpperFlag = TRUE ELSE IF UpperFlag = TRUE s[J] = UPPER(s[J]) UpperFlag = FALSE END !if END !loop END !loop RETURN( s )


Today is May 7, 2024, 2:27 am
This article has been viewed 35121 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: