Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help me please

Status
Not open for further replies.

makubexX

Programmer
Jul 7, 2012
1
PH
eve everyone .. sir i need help please sent me a codes in foxpro how to make a light background or astray password? thank you GOD BLESS ALL
 
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.

Good Luck,
JRB-Bldr

 
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")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top