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

Printing Structure Issue

Participant ,
Mar 07, 2008 Mar 07, 2008

Copy link to clipboard

Copied

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

Views

224

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST
Start with a empty string and use listappend.

Votes

Translate

Translate

Report

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
Documentation