GerritGroot
Technical User
Hi,
Maybe a stupid question, but if I want to specifiy a string of a variable length, without it being an argument of a subroutine, what do I do?
CHARACTER*(*) :: ch
Is not allowed, because it's not an argument to a routine
(Never understood the extra (*) BTW)
CHARACTER, DIMENSION), ALLOCATABLE :: ch
Is an option, but that's an array of characters and not a string.
Is there a more elegant solution?
Any suggestions?
Thanks,
Gerrit
Maybe a stupid question, but if I want to specifiy a string of a variable length, without it being an argument of a subroutine, what do I do?
CHARACTER*(*) :: ch
Is not allowed, because it's not an argument to a routine
(Never understood the extra (*) BTW)
CHARACTER, DIMENSION), ALLOCATABLE :: ch
Is an option, but that's an array of characters and not a string.
Is there a more elegant solution?
Any suggestions?
Thanks,
Gerrit