Re: question on character-like variable defination



In a character declaration, the length of the strings is specified
in one of two ways: either as a length parameter on the CHARACTER
type name itself or as a specifier on each variable being declared.

The default length (if neither of the above is given) is one character.
An explicit length on an individual variable overrides what's specified
on the typename.

Hence:

Character V1
Character*10 V2
Character V3*15
Character*20 V4, V5*40, V6

The V1 variable has a length of one. The V2 string has length
10. The V3 string has length of 15. The V4 and V6 variables
have lengths of 20. And the V5 variable has a length of 40.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


.



Relevant Pages

  • Re: Any suggestions?
    ... I don't know if you are asking only about how to copy character strings from one variable to another or also want to know about how to get command line arguments in Fortran. ... Fortran 2003 includes the ability to specify a varying length through the LEN=specifier, but this will likely be one of the last Fortrean 2003 features to be implemented. ...
    (comp.lang.fortran)
  • Re: [PHP] newbie question
    ... padding the results to the right string size. ... This may be a space character ... a width specifier that says how many characters ...
    (php.general)
  • Re: [PHP] newbie question
    ... padding the results to the right string size. ... This may be a space character ... a width specifier that says how many characters ...
    (php.general)
  • Re: question on character-like variable defination
    ... James Giles wrote: ... type name itself or as a specifier on each variable being declared. ... The default length is one character. ... obsolescent. ...
    (comp.lang.fortran)
  • Re: InStr does not return position of $ symbol
    ... '$' character, rather than being formatted to appear as though it does. ... What is the data type of the 'Specifier' field? ... Brendan Reynolds ... else can I do this in an Access 2002 query? ...
    (microsoft.public.access.queries)