home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2763 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!swrinde!emory!emory!not-for-mail
  2. From: dave.snyder@snide.com (Dave Snyder)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Entering "invisible" data in a form
  5. Date: 19 Dec 1992 10:58:07 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 38
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1gvgqfINNpa2@emory.mathcs.emory.edu>
  11. Reply-To: dave.snyder@snide.com (Dave Snyder)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1727>
  14.  
  15. Quoting Cecilia Jaeger...
  16. } I couldn't think of a better way to phase this. I have a form that
  17. } is basically an opening screen that asks for Employee Id and password.
  18. } In 4gl 4.0 how do I make it so the user DOESN'T see what they type as the enter
  19. } their password. I like to be able to do it in the form. 
  20. } I try setting color attribute = invisible. I think I am may be confused as
  21. } to what that attribute does. What does invisible mean? It is available
  22. } attribute for display and prompt.
  23. I sat on this one for a day now...  Everyone seems to be dwelling on INVISIBLE
  24. and terminal attributes.  Technotes "Spring 1990" provided this little gem:
  25.  
  26. Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip
  27. MAIN
  28.     DEFINE  c CHAR(1)           # Get character
  29.     DEFINE  psw CHAR(8)         # Store the password
  30.     DEFINE  i SMALLINT          # Counter
  31.  
  32.     OPTIONS PROMPT LINE 22
  33.     FOR i = 1 TO 8
  34.         PROMPT "Enter password: " FOR CHAR c
  35.         IF (c IS NULL) THEN     # Check for space or return
  36.             EXIT FOR
  37.         ELSE
  38.             LET psw = psw CLIPPED, c
  39.         END IF
  40.     END FOR
  41. END MAIN
  42. Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip
  43.  
  44. DAS
  45. -- 
  46. David Snyder @ Snide Computer Services - Folcroft, PA          Current Release
  47.                                                                is db4glgen-3.9
  48. UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com
  49.