[Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label
Eric Kom
erickom at metropolitancollege.co.za
Mon Jan 21 07:18:11 CET 2013
On 20/01/2013 23:26, Mattias Gaertner wrote:
> On Sun, 20 Jan 2013 18:43:44 +0100
> Sven Barth <pascaldragon at googlemail.com> wrote:
>
>> On 20.01.2013 18:40, Eric Kom wrote:
>>> Good afternoon all,
>>>
>>> Please after write the above procedure, I received the errors: Upper
>>> bound of case range is less than lower bound and duplicate case label
>>>
>>> procedure DisplayGrade(Sender: TObject);
>>> var
>>> grade : String;
>>> tuitionFee: String;
>>> gradeSelected: String;
>>> begin
>>> gradeSelected := cbbGradeList.Items[cbbGradeList.ItemIndex];
>>> case gradeSelected of
>>> '12'..'12': tuitionFee := '14500.00';
>> ^ ^ This should be easy to spot...
> Maybe changing the message to "lower or equal" would help?
I don't understand this error of lower bound and duplicate case label
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
Kind Regards
Eric Kom
System Administrator & Programmer - Metropolitan College
_________________________________________
/ You are scrupulously honest, frank, and \
| straightforward. Therefore you have few |
\ friends. /
-----------------------------------------
\
\
.--.
|o_o |
|:_/ |
// \ \
(| Kom | )
/'\_ _/`\
\___)=(___/
2 Hennie Van Till, White River, 1240
Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334
erickom at kom.za.net | erickom at metropolitancollege.co.za
www.kom.za.net | www.kom.za.org | www.erickom.co.za
Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5
More information about the Lazarus
mailing list