Input data but not showing what you done

Input data but not showing what you done

Postby tsai8839 » Sun Sep 10, 2006 7: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.

Code: Select all  Expand view  RUN
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
tsai8839
 
Posts: 22
Joined: Mon Jul 24, 2006 6:45 am

Postby Antonio Linares » Sun Sep 10, 2006 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby tsai8839 » Mon Sep 11, 2006 3:48 am

Antonio,

Thank you very much for your help.
Regards,

Andy Tsai
tsai8839
 
Posts: 22
Joined: Mon Jul 24, 2006 6:45 am


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 8 guests