Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!usc!nic.csu.net!koko.csustan.edu!petunia!zeus!hhallika From: hhallika@zeus.calpoly.edu (Harold Hallikainen) Newsgroups: comp.lang.pascal Subject: Re: passing two variables (actually, returning in function) Message-ID: <1991Jun29.155354.199389@zeus.calpoly.edu> Date: 29 Jun 91 15:53:54 GMT References: <1991Jun21.144356.19598@javelin.sim.es.com> <1991Jun21.175817.339@maytag.waterloo.edu> <1991Jun24.175745.6594@tertius.in-berlin.de> Organization: California Polytechnic University, San Luis Obispo Lines: 23 Ideally, I'd hope we could have a function result type be an array, allowing you to return any specified number of results. I believe you can do this if you want to mess with things a bit. Since a string is the same as a character or byte array, and we are allowed to return strings, declare the function result type as a string. If an array of bytes is a useful result, you can refer to the results directly. If you want some other type of results (maybe even real), seems like something with variant records could be done. Describe the result as a character array and as an array of reals, then refer to the real names. I haven't tried this, but it seems logical (which is probably dangerous!). Good luck! Harold -- Harold Hallikainen ap621@Cleveland.Freenet.edu Hallikainen & Friends, Inc. hhallika@pan.calpoly.edu 141 Suburban Road, Bldg E4 phone 805 541 0200 fax 544 6715 San Luis Obispo, CA 93401-7590 telex 4932775 HFI UI