How to detect NULL input?



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

.



Relevant Pages

  • Re: Just for the hell of it
    ... > Your true companion is out there waiting for you. ... Pull the string to email ... Prev by Date: ...
    (rec.motorcycles.harley)
  • Re: How to detect NULL input?
    ... Skip Knoble ... -|Is there a way to determine if the return key is pressed while waiting ... -| characterstring ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: "save as" and "open" do not respond in MS Word
    ... This message is posted to a newsgroup. ... but enter can be the string or just the enter key. ... Explorer or the Windows shell after you install security update ... even after waiting for 6 to 7 mins. ...
    (microsoft.public.word.docmanagement)
  • Re: Brute-Force-like array
    ... > module it refers to... ... I got bored while waiting for some clients at work... ... #where we'll store each string we find ...
    (comp.lang.perl.misc)
  • Re: how to read a file newly generated in real time?
    ... Waiting for the file ... Your program may be running in such a tight loop that it is sending ... output faster than the output device can handle, ... static time_t prev = 0; ...
    (comp.lang.c)