Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Change Character to *

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change Character to *

    Form A
    1. Character field.
    2. When inputting data, say ABCD, would like **** to be displayed instead of the characters.

    Form B
    Same field but the field displays ABCD

    Looked around the Forum and the help files but I cannot nail it down.

    Regards

    Alan

    #2
    Re: Change Character to *

    Allan,

    If you are looking for a way to disguise the letters, you might set the font to TrueType Euro Sign. When this font is used, the text is displayed in little rectangles. I found that this font with font color of Gray-25 works quite nicely on the password field on my custom login form.

    Last year, I too was looking for a way to do this with astericks, but couldn't find a way. With Visual Studio, it's easy to do so, but remember this is Alpha Five.

    Bob McGaffic
    Pittsburgh, PA

    Comment


      #3
      Re: Change Character to *

      Originally posted by Alan Lucas View Post
      Form A
      1. Character field.
      2. When inputting data, say ABCD, would like **** to be displayed instead of the characters.

      Form B
      Same field but the field displays ABCD

      Looked around the Forum and the help files but I cannot nail it down.

      Regards

      Alan
      Why not use the Prompt for a Password action script element or ui_get_password() that have the masking capability built in to get the string into a variable. Then store that variable in your field.
      There can be only one.

      Comment


        #4
        Re: Change Character to *

        When a font displays as boxes that typically means the font is not installed on the computer. If someone does install that particular font, I would hazard to guess that the characters will display on the form for them.

        I do not use version 9 but in version 8 I use a xdialog with a Text Box and the "P" directive

        http://support.alphasoftware.com/alp...t_Box_P___.htm
        Andrew

        Comment


          #5
          Re: Change Character to *

          Bob/Stan/Andrew,

          Thank you for you suggestions. I Changed the Font to Wingdings on Form A and Arial on Form B. Works exactly as I needed, plus Wingdings is on nearly all computers. Simple approach but effective.

          Thanks

          Alan

          Comment


            #6
            Re: Change Character to *

            What is the purpose of using a different font on form A?

            Are you attempting to mask the value or are you trying to protect the value from being known?

            Based on the request for converting to the '*' character I assumed you want to protect the value. But by using Wingdings as a font all you are doing is masking the value.

            Wingdings is a 1 to 1 translatation. I.e the char 'A' is always converted to the same symbol. Hence once I learn the symbol conversion I can just as easily read the symbols as I would regular text.
            Andrew

            Comment


              #7
              Re: Change Character to *

              Originally posted by Alan Lucas View Post
              Bob/Stan/Andrew,

              Thank you for you suggestions. I Changed the Font to Wingdings on Form A and Arial on Form B. Works exactly as I needed, plus Wingdings is on nearly all computers. Simple approach but effective.

              Thanks

              Alan
              1-Windings will not give you * on all characters
              2-If your objective is to mask the characters, Winding won't do it. Any one could copy the characters and view them in any other font.

              xdlg offers password control, forms don't. I am pretty certain, not exactly certain but I think I am definitely maybe certain, that this question was asked before and an example was attached showing how to do it in a form.

              Comment


                #8
                Re: Change Character to *

                Good point, if you then copy the contents of the field and paste into word, wordpad, whatever the translation happens for you.
                There can be only one.

                Comment


                  #9
                  Re: Change Character to *

                  Thanks for the heads-up on Wingdings.

                  Form A is an input form which can be seen by a number of people. One input field is sensitive data and I want to disguise it in case the person inputting leaves the terminal or looks away, then the data cannot be read. Form B is a managers form with secure access where the data needs to be readable.

                  Thanks

                  ALan

                  Comment


                    #10
                    Re: Change Character to *

                    Originally posted by Alan Lucas View Post
                    Thanks for the heads-up on Wingdings.

                    Form A is an input form which can be seen by a number of people. One input field is sensitive data and I want to disguise it in case the person inputting leaves the terminal or looks away, then the data cannot be read. Form B is a managers form with secure access where the data needs to be readable.

                    Thanks

                    ALan
                    The best way to disguise it is to make it invisible: i.e. font matches the background.

                    Comment


                      #11
                      Re: Change Character to *

                      Hi Gabe,

                      How will you know if you've inputted data and how much?

                      Alan

                      Comment


                        #12
                        Re: Change Character to *

                        Making font the same color as background is akin to "security thru obscurity". Highlight area with mouse and you will see the text, copy and paste to another location, for easy data grab.

                        If the field needs to be protected from viewing by normal user, best way is to simply not put the field on the form.

                        If the user needs to know if the field is populated you can use a calculated variable that evaulates to .t. or .f. based on if the field is blank or not.
                        Andrew

                        Comment


                          #13
                          Re: Change Character to *

                          Originally posted by Alan Lucas View Post
                          Hi Gabe,

                          How will you know if you've inputted data and how much?

                          Alan
                          Change the color of the text with the OnSave event. Come to think of it, why don't you hide the whole darn thing, or better off if no activity for a certain period of time, disable the object or the whole form or the whole application until the user returns back and sign on with a password.

                          Comment


                            #14
                            Re: Change Character to *

                            Another issue with these methods is that the user who types in the initial info can't tell what's being typed. So, the wrong data could be entered without knowing it.

                            The following assumes it's acceptable to display the value as it's being typed - which may or may not be true in your case.

                            The way I got around this with some credit card entries was to allow the user to type the number without changing the font. As soon as the cursor leaves the field, the CanWrite field rule event encrypts the data. I do the same for the expiration date. Now the data is protected even if someone steals a copy of the table. Those who have permission can push a button to see the decrypted numbers and they can also print reports that decrypt the number during the print process. In addition, the input form displays the last 4 digits (decrypted, of course) and the expiration date - but the data remains encrypted.

                            FWIW:
                            (A) The encryption routine I used also checks to see if the value has already been encrypted - just to make sure it doesn't get double, triple, etc. encrypted.
                            (B) For those of you who are saving credit card info in a table, be aware that the "standard" set by the credit companies (i.e., I don't think it's a law but you might have a problem if you don't do it) is that all saved credit card numbers and expiration dates should always be encrypted and the CVV (authorization number on the back of the card) should never be saved.

                            Comment


                              #15
                              Re: Change Character to *

                              Although Cal's method is the way I would most likely incorporate, the original request of
                              Form A
                              1. Character field.
                              2. When inputting data, say ABCD, would like **** to be displayed instead of the characters.

                              Form B
                              Same field but the field displays ABCD
                              seems doable using the form's OnKey event in conjunction with a conditional object with two fields or even just another field that is hidden and disabled....

                              My short testing seems to accomplish it.....but unless a way is used to handle most of the keys in a small script the scripting would be rather long to do for each and every key there is.
                              Mike
                              __________________________________________
                              It is only when we forget all our learning that we begin to know.
                              It's not what you look at that matters, it's what you see.
                              Henry David Thoreau
                              __________________________________________



                              Comment

                              Working...
                              X