comp.lang.ada
 help / color / mirror / Atom feed
From: Dmitriy Anisimkov <vagul@chat.ru>
To: Jamie <j.couston@virgin.net>
Subject: Re: incrementing characters
Date: 1998/07/09
Date: 1998-07-09T00:00:00+00:00	[thread overview]
Message-ID: <35A3B710.4A18DBE1@chat.ru> (raw)
In-Reply-To: 01bdaa89$e1084920$0a39a8c2@default

Jamie wrote:
> how can I increment the value of a character?

Char := Character'Succ(Char); -- next value
Char := Character'Pred(Char); -- previous value
Char := Character'Val(Character'Pos(Char)+offset); -- integer offset




  reply	other threads:[~1998-07-09  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-08  0:00 incrementing characters Jamie
1998-07-09  0:00 ` Dmitriy Anisimkov [this message]
1998-07-10  0:00 ` Pascal MALAISE
replies disabled

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