Re: Dynamic String Problem - Please help me Fast
- From: Paul Van Delst <Paul.vanDelst@xxxxxxxx>
- Date: Fri, 28 Oct 2005 16:54:45 -0400
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 .
- Follow-Ups:
- Re: Dynamic String Problem - Please help me Fast
- From: Arjen Markus
- Re: Dynamic String Problem - Please help me Fast
- References:
- Prev by Date: Re: reading in int and real values
- Next by Date: Re: compare two dynamic string
- Previous by thread: Dynamic String Problem - Please help me Fast
- Next by thread: Re: Dynamic String Problem - Please help me Fast
- Index(es):