Re: Dynamic String Problem - Please help me Fast



TC wrote:
This a dynamic string!?

character,allocatable :: Parola (:)
character,allocatable :: P (:)

How make if (Parola < P)... Or = or >
??????

If that's how you define your dynamic string (an array of _single_ character elements) then why not just loop over elements and compare? You can use the lexical comparison functions for each element (assuming the ASCII Collating sequence is what you want to use). You might also want to consider using an actual string (rather than an array of single characters) then you can use the lge,lgt,lle, or llt functions on the whole words.


cheers,

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
.