FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Input data but not showing what you done
Posts: 22
Joined: Mon Jul 24, 2006 06:45 AM
Input data but not showing what you done
Posted: Sun Sep 10, 2006 07:32 AM
Hi all,
I want to key-in a word through Get VAR and I want the data display ******* instead of my actually key-in word.

FUNCTION Test()
    Local oDlg, oGet
    cName := SPACE(7)
    DEFINE DIALOG oDlg RESOURCE "Test" TITLE "Please key-in your name"
    REDEFINE GET oGet VAR cName PICTURE "NNNNNNN" ID 110 OF oDlg
    REDEFINE BUTTON ID 120 OF oDlg ACTION oDlg:End()
    ACTIVATE DIALOG oDlg CENTERED
RETURN Nil


Above is my normal code, how to modify my Get VAR code in order that I can input a word and it will display ******* ?

Any help will be much appreciated.
Thanks in advance.
Regards,



Andy Tsai
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Input data but not showing what you done
Posted: Sun Sep 10, 2006 09:04 AM

Andy,

Use ES_PASSWORD style for the GET in the resource file, i.e.:

define ES_PASSWORD 32

EDITTEXT 100, 32, 42, 78, 15, ES_PASSWORD | WS_BORDER | WS_TABSTOP

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 22
Joined: Mon Jul 24, 2006 06:45 AM
Input data but not showing what you done
Posted: Mon Sep 11, 2006 03:48 AM

Antonio,

Thank you very much for your help.

Regards,



Andy Tsai

Continue the discussion