Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Printing Structure Issue

Participant ,
Mar 07, 2008 Mar 07, 2008
Hi Folks!

I am writing a report and I am printing the days of the week, school day periods and the rooms that are empty on any period. To print my structure I do the following:

<cfif StructKeyExists(roomStruct,Periods.PERIOD_CODE[period])>
<cfif StructKeyExists(roomStruct[Periods.PERIOD_CODE[period]],CycleDays.DAY_CODE[day])>
#StructKeyList(roomStruct[Periods.PERIOD_CODE[period]][CycleDays.DAY_CODE[day]])#
</cfif>
</cfif>

The issue is that I am getting the following set of rooms (example):

,Room1,Room2, Room3

Please note the comma before room 1. The customers do not want that. Did I miss a step?

I'd appreciate any feedback!

Apocalipsis!
TOPICS
Advanced techniques
244
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 07, 2008 Mar 07, 2008
LATEST
Start with a empty string and use listappend.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources