Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!utah-cs!cetron From: cetron@utah-cs.UUCP (Edward J Cetron) Newsgroups: comp.lang.fortran Subject: Re: accessing character arrays... Message-ID: <4071@utah-cs.UUCP> Date: Thu, 4-Dec-86 11:56:46 EST Article-I.D.: utah-cs.4071 Posted: Thu Dec 4 11:56:46 1986 Date-Received: Fri, 5-Dec-86 01:45:50 EST References: <1772@ncoast.UUCP> Reply-To: cetron@utah-cs.UUCP (Edward J Cetron) Organization: Center for Engineering Design, Univ of Utah Lines: 20 In article <1772@ncoast.UUCP> btb@ncoast.UUCP (Brad Banko) writes: >how do you access characters in arrays of character*n? > >I am using Vax Fortran, and would like to access individual characters in >an array of character*n: > > character*n a(m) > >I want it to be "m lines of n character 'strings'", but fortran won't let >me access character y in "line" x with: > > a(x,y), or a(x)(y)... > try a(x)(y:y) where (x,x,x,...) are array delimiters, and (n:m) are substring specifiers... -ed cetron Center for Engineering Design Univ of Utah