There will need to be a lot of clarification before anyone can hope to offer you suggestions or advice.
1. What version of Foxpro are you using.
2. Light background where?
* In a Screen
* On a Menu
* where?
3. make a light background or astray password
What?
Either a light background OR create a password entry screen?
Also note - we generally do not GIVE YOU CODE.
We might offer suggestions or advice to you so that we can assist your LEARNING OPPORTUNITY and, as a result, you can create YOUR OWN CODE, but PAID consultants or contractors GIVE YOU CODE.
Do you mean you want to replace entered password keystrokes with "*" (asterisks)?
As already stated, we would need additional information to help point you in the right direction.
If you do a Search for this topic (password) within this forum you will find two primary options.
1. Use an "asterisk-only" font for the Password input box.
2. Use an INKEY() loop and echo back only asterisk * characters to the input GET box. The code, while straightforward, requires handling for backspace characters, escapes and others to cover all the user expected behavior.
thread182-1454716
thread182-55467
One idea is to set the background color equal to foreground color but then the user can't see anything being typed and you risk the user thinking it's not working. However please be advised that the text will still show up when the user highlights it, so to make the quickie solution more complete change the highlight to match as well. this will make the text truly invisible.
A couple samples to test whether robust or not:
@ 7,7 GET cPassword PICTURE "@X" COLOR "B/B,B/B"
@9,18 GET cPassword PICTURE '@' MESSAGE "Enter your password" COLOR (",X/B,,,,X/B")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.