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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

### User Login Screen

Status
Not open for further replies.

irfanhabib

Programmer
Feb 17, 2016
16
PK
Dear All Experts -

This is very informatic and real helping platform for all users , i feel day by day
my skills improved and i am very happy, i am part of this professional community.

My User Login Screen Coding Present In Usrlog.prg File. In passord input field
i use COLO N+,N , i use this only for when user input in password field ,no text
display and only cursor movement display.

My Requirements
================
if possible guide me , when user type password in password field, ( ***** ) display in password
field and cursor move farward.

I am very thankful, if provide solution code in prg file.

Very Best Regards
Irfan Habib

 
That should do it, besides you still expect legacy solutions in the VFP forum, please post this in forum182
Please consider this for future posts, don't be afraid you'll not be discovered there.

As you still consider this the forum to post and we're not the forum cops:
The VFP way would be setting the PasswordChar property of a textbox to "*" and the rest is automatic.

Obviously you have to go through much more code to make this work on an @say or @get. Therefore even though you say you don't know forms, it's a simple form to start with judged from the form structure itself, though Login is an advanced topic. You may consider learning to do forms now and create a simple login SCX form instead of screen PRG code. It only takes two textboxes for user and password and a commandbutton "Login".

And while it breaks the UI, it's just a simple popup window appearing at Login.

Bye, Olaf.
 
Re Mroth36's solution in the thread that JRB posted: It works fine, as far as it goes. But it has the disadvantage that the user can't backspace to correct a mistake, nor can he paste into it password (it would only paste one character at a time). You could code round those two issues - at the cost of greater complexity. It's another argument for using a form.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top