Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!prometheus!media!hqda-ai!samt19!hq!dftsrv!nssdca.gsfc.nasa.gov!lanmaint From: lanmaint@nssdca.gsfc.nasa.gov (Dave Yoest) Newsgroups: comp.lang.pascal Subject: Re: Defining variable lenght arrays Message-ID: <3631@dftsrv.gsfc.nasa.gov> Date: 17 Oct 90 10:13:46 GMT References: <24785@adm.BRL.MIL> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: lanmaint@nssdca.gsfc.nasa.gov Organization: NASA - Goddard Space Flight Center Lines: 20 News-Software: VAX/VMS VNEWS 1.3-4 In article <24785@adm.BRL.MIL>, BESKO%MSUNSCL.BITNET@uga.cc.uga.edu writes... > >Does anyone know if it is possible and how to define a variable length char >array in VAX Pascal? Any information would be helpful. > >Thanks, > >Lisa Besko Lisa, Yes it's possible.... declare the array of characters as: your_array_name : varying[255] of char; for a varying length char array of 255 char. of course, the variable allocates space for all 255, but "varying" can be assigned to other "varying" array sizes without type mismatches.