Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Limitation of the Strings!!??

patuco
Beginner
320 Views
Hi everybody
I am dealing with a program which has an incredible length of string and this brings me an error:
E.g. :Fortran est.FOR(143): error FOR3852: syntax error detected between '
any idea how to solve it or make unlimited the length of the string?
The programi am usingis Fortran Power Station4.0
Thanks in advance
0 Kudos
1 Reply
Les_Neilson
Valued Contributor II
320 Views

I have heard that the PowerStation 4 compiler was quite buggy but I don't know in what areas.

Couldyou try breaking the string into smaller "chunks" ? example :

integer :: len

character(1024) :: bigString

bigString = "Firstpart of character data"

len = len_trim(bigString) + 1

bigString(len:) = " more characters"

len = len_trim(bigString)+1

bigString(len:) = " even more characters"

and so on.

Les

0 Kudos
Reply