Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!uniwa!vax7!tgumleyle From: Gumley_LE@cc.curtin.edu.au (Liam Gumley) Newsgroups: comp.lang.fortran Subject: EQUIVALENCE or STRUCTURE/RECORD ? Message-ID: <6683.278c85d2@cc.curtin.edu.au> Date: 10 Jan 91 07:18:42 GMT Organization: Curtin University of Technology Lines: 25 A VAX/VMS Fortran-77 question follows.... What I am trying to do is this.... Main program byte buffer(100) Subroutine (has 'buffer' passed to it) byte buffer(100) integer*4 data(20) equivalence ( buffer(3), data(1) ) The VAX compiler gives an error at the equivalence line. Now I know I could do the equivalence in the main program and pass 'data' to the subprogram, but I would like to do it in the subroutine if I can. Can I do this using structure and record statements, or some other way? Cheers, Liam. -- #Liam E. Gumley, Department of Applied Physics, Curtin University of Technology# #Perth, Western Australia. >>>All opinions expressed are exclusively mine.<<<#