On Mon, Jan 21, 2013 at 4:43 AM, Sven Barth <[email protected]> wrote: >> case gradeSelected of >> '12'..'12': tuitionFee := '14500.00'; > > > ^ ^ This should be easy to spot...
No, the error is in the line below. >> '8'..'11' : tuitionFee := '13500.00'; Note that strings are not numbers, so '8' > '11'. Also, '1' < '11' < '7' < '8', so case branch labels intersect, which is the reason for the second error. On Mon, Jan 21, 2013 at 8:26 AM, Mattias Gaertner <[email protected]> wrote: > Maybe changing the message to "lower or equal" would help? No, equal values are acceptable, although useless. Eric: "case of string" is not suitable for your task, use the usual "case of integer" instead. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
