Skip to main content
Inspiring
March 7, 2008
Question

Printing Structure Issue

  • March 7, 2008
  • 1 reply
  • 265 views
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!
This topic has been closed for replies.

1 reply

Inspiring
March 7, 2008
Start with a empty string and use listappend.