home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!asuvax!ncar!csn!copper!aspen.craycos.com!jrbd
- From: jrbd@craycos.com (James Davies)
- Newsgroups: comp.lang.fortran
- Subject: Re: How does one return a logical value...???
- Message-ID: <1992Nov18.170045.3979@craycos.com>
- Date: 18 Nov 92 17:00:45 GMT
- References: <BxwrJC.GME@cs.uiuc.edu>
- Organization: Cray Computer Corporation
- Lines: 15
-
- In article <BxwrJC.GME@cs.uiuc.edu> ctaylor@cs.uiuc.edu (Conrad W Taylor) writes:
- >
- > I have written a function which returns a logical
- >value, CheckActivity(previous, ROWS, COLS), previous is an
- >array. I'm using it like this:
- >
- > IF (CheckActivity(previous, ROWS, COLS) .EQ. .TRUE.) THEN
- > uncontrol = uncontrol + 1
- > ENDIF
- >
- >My compiler says that I have mixed types when I use .TRUE. .
-
- You need to declare the return type of checkactivity in the routine
- that calls it:
- logical checkactivity
-