comp.lang.ada
 help / color / mirror / Atom feed
From: ldries46 <bertus.dries@planet.nl>
Subject: Finding the next or the previous value in a enumerated type
Date: Sat, 19 Nov 2022 15:05:50 +0100	[thread overview]
Message-ID: <nnd$1f48a501$398eed6c@11974fcc584b8061> (raw)

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).

             reply	other threads:[~2022-11-19 14:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-19 14:05 ldries46 [this message]
2022-11-19 14:32 ` Finding the next or the previous value in a enumerated type Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox