Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!VMS.HUJI.AC.IL!seran From: seran@VMS.HUJI.AC.IL (ERAN MEGIDO) Newsgroups: comp.lang.pascal Subject: User defined ordinal types Message-ID: <527@shum.UUCP> Date: 27 Nov 90 11:39:04 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: seran@vms.huji.ac.il Organization: The Hebrew University of Jerusalem, Jerusalem, Israel Lines: 11 I am programming a pascal program using the vm compiler pascal. I am defining a user defined type to be: day_type= (sun,mon,tue,wed,thu,fri,sat); I want to cycle through the days of the week but return to sun after sat. I'd like to do this using a succ(day) which is in a loop counting the days of the month. Also I would like to set the loop to start at Monday. Is there any way of assigning the position to a user def. type? And doing what I want to do? Thank you in advance, Eran... Please send the answer, if possible, to SERAN@HUJIVMS.bitnet or seran@vms.huji,ac,il on internet. bitnet is preffered.