Great.  This looks just like what I need.

  _____  

Gary L. Alford
Manufacturing Operations Project Specialist
Bell Helicopter XWorx
Phone: (817) 280-6233     Fax: (817) 278-6233
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

I have not failed.  I've found 10,000 ways that won't work.
          Thomas A. Edison 
  _____  



-----Original Message-----
From: Anthony Frey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 19, 2005 10:52 AM
To: [email protected]
Subject: Re: Incrementing Text Strings


does this help?


<cfset
alphabet="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z">

<cfset firstChar = 1>
<cfset secondChar = 1>
<cfset thirdChar = 1>

<cfoutput>
        <cfloop from="1" to="26" index="k">
                <cfloop from="1" to="26" index="j">
                        <cfloop from="1" to="26" index="c">
                                <cfset thirdChar = c>
                                #listGetAt(alphabet,
firstChar)##listGetAt(alphabet,
secondChar)##listGetAt(alphabet, thirdChar)#
                                <br>
                        </cfloop>
                                <cfset secondChar = secondChar + 1>
                                <hr>
                        <cfloop from="1" to="26" index="b">
                                <cfset thirdChar = b>
                        </cfloop>
                </cfloop>
                        <cfset firstChar = firstChar + 1>
                                <hr>
                <cfloop from="1" to="26" index="a">
                        <cfset thirdChar = a>
                        <cfset secondChar = 1>
                </cfloop>
        </cfloop>
</cfoutput>


--- "Alford, Gary L"
<[EMAIL PROTECTED]> wrote:

> Is it possible to increment a text string?  For
> example, if I have a string,
> AAA, is it possible to automatically generate the
> next string in a sequence,
> AAB, AAC, AAD ... AAZ, ABA, ABC, etc?
> 
>   _____  
> 
> Gary L. Alford
> Manufacturing Operations Project Specialist
> Bell Helicopter XWorx
> Phone: (817) 280-6233     Fax: (817) 278-6233
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>  
>   _____  
> 
> 
>  
> 
> 

> ATTACHMENT part 2 image/jpeg name=Glacier Bkgrd.jpg



=====
Anthony C. Frey
214-529-1507
[EMAIL PROTECTED]
 
 



                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm

----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to