Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!eurtrx!euraiv1!reino From: reino@cs.eur.nl (Reino de Boer) Newsgroups: comp.lang.pascal Subject: Re: Another various question about TP 5.0 Message-ID: <1989Dec1.121539.5362@cs.eur.nl> Date: 1 Dec 89 12:15:39 GMT References: <303@usna.MIL> Organization: Erasmus Universiteit Rotterdam, dept. CS (Informatica) Lines: 25 baldwin@usna.MIL (J.D. Baldwin) writes: >Is there a good, clean way to convert the value of an enumerated ordinal >type to a string value? As far as I know, Turbo Pascal doesn't help you on this one. You have to write a function yourself (for each enumeration) like (e.g.) this: case v of carrots : s := 'carrots'; . . . end; stringvalue := s There are some pascals which do the conversion for you (I know VAX-Pascal does it). If there is general Turbo Pascal solution I'd like to hear about it. Hope this helps -- Reino -- Reino R. A. de Boer Erasmus University Rotterdam ( Informatica ) e-mail: reino@cs.eur.nl