From: Gautier <Gautier.deMontmollin@maths.unine.ch>
Subject: Re: Safely converting String to Float ?
Date: 1999/11/03
Date: 1999-11-03T00:00:00+00:00 [thread overview]
Message-ID: <38204297.65F54D70@maths.unine.ch> (raw)
In-Reply-To: m3n1svbw6t.fsf@kiuk0156.chembio.ntnu.no
> begin
> Get(Tekst,Tall,Size);
> Get(Tekst2,Tall_F,Size_F);
> end;
> I would like the program to deal with the failure of
> conversion in a kinder manner.
begin
Get(Tekst,Tall,Size);
Get(Tekst2,Tall_F,Size_F);
exception
when data_error => Put("Your string is wrong, my dear!");
end;
or variants...
HTH
Gautier
_____\\________________\_______\_________
http://members.xoom.com/gdemont/gsoft.htm
next prev parent reply other threads:[~1999-11-03 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-03 0:00 Safely converting String to Float ? Preben Randhol
1999-11-03 0:00 ` Robert Dewar
1999-11-03 0:00 ` Robert Dewar
1999-11-03 0:00 ` Preben Randhol
1999-11-03 0:00 ` Samuel Tardieu
1999-11-04 0:00 ` Jürgen Pfeifer
1999-11-04 0:00 ` [SOLVED] " Preben Randhol
1999-11-03 0:00 ` Gautier [this message]
1999-11-03 0:00 ` Matthew Heaney
1999-11-03 0:00 ` Preben Randhol
1999-11-03 0:00 ` Lutz Donnerhacke
1999-11-03 0:00 ` Preben Randhol
1999-11-08 0:00 ` Robert A Duff
1999-11-09 0:00 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox