Re: How to detect NULL input?
- From: Rich Townsend <rhdt@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 29 Jan 2006 20:32:29 -0500
jane.sync@xxxxxxxxx wrote:
Is there a way to determine if the return key is pressed while waiting for input? I tried to do something like the code below in the line "if (LLT(str1,'')) then" where I was comparing "str1" to ''. The program didn't read the enter key...
function evaluateinput(str1) result(string) implicit none character(12) str1 character(12) string if (LLT(str1,'')) then string = 'less than' else if (LGT(str1,'')) then string = 'greater than' else string = 'equal' end if return end
Once again, replace
character(12) str1
by
character(*) str1
....and you should be OK.
cheers,
Rich .
- Follow-Ups:
- Re: How to detect NULL input?
- From: jane . sync
- Re: How to detect NULL input?
- References:
- How to detect NULL input?
- From: jane . sync
- How to detect NULL input?
- Prev by Date: Re: How to compare two strings in 77?
- Next by Date: Re: How to compare two strings in 77?
- Previous by thread: How to detect NULL input?
- Next by thread: Re: How to detect NULL input?
- Index(es):
Relevant Pages
|
|