Re: index function problem



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
.



Relevant Pages

  • Re: passing a string to a dll
    ... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ...
    (microsoft.public.vc.mfc)
  • Re: passing a string to a dll
    ... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ...
    (microsoft.public.vc.mfc)
  • Re: Array Type Mismatch
    ... Dim resultAs String ... I am still somewhat confused as to why nothing is stored in the array. ... Public Function TextBoxGetLine(....arguments... ...
    (microsoft.public.access.formscoding)
  • Re: NumberFormatException:please help me......!!!
    ... Record that has string and array of double as members) and file could ... follows it on a line of the input file, you could use the String as a key to ... contain String representations of doubles. ...
    (comp.lang.java.programmer)
  • Help in Spanish translation of the description of UDFs
    ... functions of minimum / maximum values among elements of an array column. ... GETALLWORDS- Inserts the words from a string into a global dimensioned ... WORDTRAN- Searches a character string for occurrences of a first word, ... ARRAYSUM- Returns the sum of all or a specified range of numeric (and/or ...
    (microsoft.public.fox.helpwanted)