Re: index function problem
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Thu, 27 Mar 2008 08:21:25 -0700
relaxmike <michael.baudin@xxxxxxxxx> wrote:
Second, the "index" intrinsic accepts only character(len=<something>)
arguments. Here the first argument had type character, dimension(150),
which is an array of character, not a string.
Well, the comment about index isn't entirely accurate. Index is
elemental. Therefore it will accept aray arguments. The result just
isn't what the OP wants. Note that the compiler's complaint wasn't that
the invocation of index was bad, but rather that the result was of the
wrong rank to assign to the scalar dummy.
You are, of course, right about the essence of the problem. I'm just
being a bit nitpicky in pointing out that it isn't corect to say that
index doesn't accept arrays.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: index function problem
- From: relaxmike
- Re: index function problem
- References:
- index function problem
- From: utab
- Re: index function problem
- From: relaxmike
- index function problem
- Prev by Date: Re: How to Read csv Files with both Characters and Numbers?
- Next by Date: Re: How to Read csv Files with both Characters and Numbers?
- Previous by thread: Re: index function problem
- Next by thread: Re: index function problem
- Index(es):
Relevant Pages
|
|