How to detect NULL input?
- From: jane.sync@xxxxxxxxx
- Date: 29 Jan 2006 17:08:21 -0800
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
.
- Follow-Ups:
- Re: How to detect NULL input?
- From: Herman D . Knoble
- Re: How to detect NULL input?
- From: Rich Townsend
- Re: 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 compare two strings in 77?
- Next by thread: Re: How to detect NULL input?
- Index(es):
Relevant Pages
|
|