Wed Oct 28, 2020 7:57 pm
Login Register Lost Password? Contact Us


Code Correction - Introduction to ECL - Module 24

Questions and comments regarding the Online Lessons should be posted here.

Tue Mar 12, 2013 2:49 pm Change Time Zone

In Tutorial #9, the suggested solution has a missing filter clause on Line 14:

Change:

Code: Select all
OlderFemaleinMStates := COUNT($.Persons(State IN $.SetMStates,OlderPersons)) -
                        COUNT($.MeninMStatesPersons(OlderPersons));


To:

Code: Select all
OlderFemaleinMStates :=
              COUNT($.Persons(State IN $.SetMStates,OlderPersons,Gender = 'F'));


In the old code, we are also counting gender types that are "Unknown" or "None".


Thanks to Lorraine Hill in Dayton for catching this! Kudos!

Regards,

Bob
bforeman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1002
Joined: Wed Jun 29, 2011 7:13 pm

Return to Online Classroom

Who is online

Users browsing this forum: No registered users and 1 guest

cron