re: Character strings and arrays



John Harper wrote in message <1129774192.14947@xxxxxxxxxxxxxxxxxx>...
>Three cases where analogous things have different syntax are
>
>(1) Element n of a rank 1 array a is a(n)
>but element n of a character string b is b(n:n)

And how would you distinguish between b(n) of string array b
and b(n:n) of string b? if both were written as b(n) ?

>(2) An implied-do loop with stride 1 needs (... , i=m,n)
>but a FORALL statement with stride 1 needs FORALL(i=m:n) ...

strange.

>(3) In most declarations :: may appear between type and variable-name,
>and it must in certain circumstances, but :: must not appear between
>FUNCTION and function-name nor between SUBROUTINE and subroutine-name,

Has never required :: there. Doesn't require them, and does not
make sense to have any there.

>and one must say RESULT(x) not RESULT::x or RESULT x

RESULT (X) is not a declaration of X; use of :: is inappropriate.
The declaration of X may require use of ::

>John Harper






.



Relevant Pages

  • Re: POLYTEXTOUT problems..( including declarations )
    ... being I don't see why you cannot change the declaration. ... help files the pptxt parameter "points to an array of POLYTEXT structures ... String to Long, so it isn't all quite as shown "in the book"! ...
    (microsoft.public.vb.general.discussion)
  • Re: Anyone know anything about arrays and vba? If so, please help
    ... Public Sub Run(dbPath As String) ... It keeps giving me an error and saying "expected array". ... When you declared your variables you declared "Dim asData As String" ... if you define the array at declaration you can state "Dim ...
    (microsoft.public.excel.programming)
  • Re: Anyone know anything about arrays and vba? If so, please help
    ... Public Sub Run(dbPath As String) ... It keeps giving me an error and saying "expected array". ... When you declared your variables you declared "Dim asData As String" ... if you define the array at declaration you can state "Dim ...
    (microsoft.public.excel.programming)
  • Array Declaration in C# use Count instead of UpperBound
    ... Since I can remember array declaration in any language I've ... Dim Arras Type ... Dim Arras String gives you a String Array with 1 element ...
    (microsoft.public.dotnet.languages.csharp)
  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)