Re: Entering "invisible" data in a form
Posted in 1992
Quoting Cecilia Jaeger... } } I couldn't think of a better way to phase this. I have a form that } is basically an opening screen that asks for Employee Id and password. } } In 4gl 4.0 how do I make it so the user DOESN'T see what they type as the enter } their password. I like to be able to do it in the form. } } I try setting color attribute = invisible. I think I am may be confused as } to what that attribute does. What does invisible mean? It is available } attribute for display and prompt. } I sat on this one for a day now... Everyone seems to be dwelling on INVISIBLE and terminal attributes. Technotes "Spring 1990" provided this little gem: Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip MAIN DEFINE c CHAR(1) # Get character DEFINE psw CHAR(8) # Store the password DEFINE i SMALLINT # Counter OPTIONS PROMPT LINE 22 FOR i = 1 TO 8 PROMPT "Enter password: " FOR CHAR c IF (c IS NULL) THEN # Check for space or return EXIT FOR ELSE LET psw = psw CLIPPED, c END IF END FOR END MAIN Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip DAS -- David Snyder @ Snide Computer Services - Folcroft, PA Current Release is db4glgen-3.9 UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com