CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Looping...tough one here!

Print topic Send  topic

Author Message
Carey
Posted: 06/22/2002, 3:15 AM

I'm certainly hoping someone can help me with this...I've got a list of people listed alphabetically...it's for a phone list. I need to insert the initial of the alphabet at each alphabet change, above that person's name. I'm using ASP...anyone know how to do this? I'm extracting the initial using the left function...but I cannot get it to work in conjunction with the rest of the loop.

Thanks in advance!!
Nicole
Posted: 06/24/2002, 6:47 AM

Carey,
please refer to the GotoCode article:
http://www.gotocode.com/art.asp?art_id=103&

In your case the approach is the same. You should catch the first letter of field value from the current record, store it and in next loop step compare it to new one. Once the stored and compared values are different it means that you should put additional row to the table and print starting letter of current record.


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.