From: "Steve Doiel" <steved@pacifier.com>
Subject: Re: Naive question
Date: 1998/08/27
Date: 1998-08-27T00:00:00+00:00 [thread overview]
Message-ID: <35e61751.0@news.pacifier.com> (raw)
In-Reply-To: 35DF1997.3CB29CD6@tech.swh.lv
Use:
i : Integer := Character'Pos( 'M' );
to get the ordinal value of a character.
i : Integer := Integer'Value ("12");
Assignes the value of 12 to i.
SteveD
Maxim Senin wrote in message <35DF1997.3CB29CD6@tech.swh.lv>...
>How to assign value to integer like in C: int i = 'm';?
>
>I tried
> i : Integer := Integer'Value ("m");
>but it throws CONSTRAINT_ERROR.
>
>Thanks
>
next prev parent reply other threads:[~1998-08-27 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-22 0:00 Naive question Maxim Senin
1998-08-23 0:00 ` John Herro
1998-08-27 0:00 ` Steve Doiel [this message]
1998-09-19 0:00 ` Tom Moran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox