From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Date: Sat, 19 Nov 2022 15:05:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Newsgroups: comp.lang.ada Content-Language: en-GB From: ldries46 Subject: Finding the next or the previous value in a enumerated type Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Organization: KPN B.V. Path: eternal-september.org!reader01.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail Injection-Date: Sat, 19 Nov 2022 15:05:51 +0100 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" Xref: reader01.eternal-september.org comp.lang.ada:64631 List-Id: I do have a enumated type: type VALUE is (ABC, DEF, GHI, JKL, MNOP);  Suppose I have a parameter with the value DEF is there a simple way to get the next value like you can with integers in the way of V2 := V1 + 1 for instance OUT := NEXT( ABC).