Re: character string assumed length



Lynn McGuire wrote:

If I call a subroutine with a given character string and I try to put
a larger character string in the string than the field size, what
happens ? For example:

sub 1:

character*8 abc
call def (abc)

sub 2:

subroutine def (abc)
character*(*) abc
C this string is more than 8 characters
abc = '01234567890123456789'

What (will) happen is the onslaught of the evangelists crawling all over
you for politically incorrect syntax and sprinkles of endless/useless
babble. As for your question, try it before you buy it - it does what
you expected it to do, 'abc' comes out looking as '01234567'.
.



Relevant Pages

  • Re: VLOOKUP question
    ... > correspond to a given character string in column 1. ... > abc 3 ... > bcd 5 ... > formula cell. ...
    (microsoft.public.excel.misc)
  • character string assumed length
    ... If I call a subroutine with a given character string and I try to put ... character*8 abc ... subroutine def (abc) ...
    (comp.lang.fortran)
  • RE: How can I find a value from one cell in a char string in another?
    ... For example if all you want to know is if abc is in the string xabcr there ... from a cell in a character string in another cell. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Cut and paste part of a string in VBA
    ... In other-words, I need ... AND sometimes column "J" will have a 5 character string like "ABCD1". ... "ABC" in final result. ... I probably need to add another command to it...... ...
    (microsoft.public.excel.worksheet.functions)
  • Re: FORMAT and INDEX problems
    ... > SUBROUTINE ERRORLOG ... What is the explanation for this behaviour, ... > What I get is some strange filling characters behind the 'ABC' instead ... The hex editor also shows some 0x00 after this 'ABC'. ...
    (comp.lang.fortran)