Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

Hiding a Windows prompt entry? (AREV Specific)

At 24 JUN 1998 07:53:58PM Michael Slack wrote:

We're running under AREV 3.12. We have a screen that we are trying to build. One of the prompts will hold a person's Social Security Number. For security reasons we would like to show that there is data in the prompt but not show the number itself. We've been trying to figure out how to put something like asteriks (*) inplace of any data that may be in that field. Can anyone point us in the right direction to find that information?

We tried to use the MASKing for that prompt but all it did was fill the prompt with asterisks even before there is data in the prompt. The MASK is just used to show a template of what can be placed within the prompt. We are looking for something that will put and asterisk in the prompt for every digit entered as it is being entered. So if one digit has been entered then only one askterisk will be displayed. Then when the second digit is entered, two will be displayed and so on.

Plus we would like to see askterisks in place of the data within the prompt, when a row is displayed that contains data for that prompt. That is without actually overwiting the real data in the row with askterisks. The reason for that is to indicate to the user that there is or isn't data within that column.

Along with this particular screen we are creating one that will be used to enter the Social Security Number into the given table. With the needed security checks and so forth to only allow authorized users into it.

If you can point us in the right direction, it would be much appricated.

Thank You,

Michael Slack

E-mail: [email protected]


At 25 JUN 1998 12:29PM Mykl Belfatto wrote:

You can't have it display *s as you type without some effort (see below). But you can easily hide the data in the field by using an Oconv on the field using sec(7) which encrypts the displayed data. This will display "" rather than the actual data.

To display *s as you type, you need to bypass SCRIBE and set up your own input routine as a preprocess to the field and prevent entry to that field and define the field color the same as the test in the field (hides the data). Code would be something like this:

echo off
pass='
i   =0
print @(31,19) :'str('*',len(@record))

* print # of *s for data in field

print @(31,19) :;*position of field
loop
  input.char(key)
until key=char(13)
  seqkey         =seq(key)
  begin case
    case key=char(27)
      print @(31,17) : space(25)
      wc_reset%  =5
      return
    case len(key)=2
      seqkey1    =seq(key1,1)
      seqkey2    =seq(key2,1)
      if seqkey2=72 then
        print @(31,17) : space(25)
        wc_reset%=5
        return
      end
    case seqkey=8
      pass-1,1='
      if i then
        print @(30+i,19) :' ':
        print @(30+i,19) :
        i -= 1
      end
    case seqkey ] 32 and seqkey < 125
      i += 1
      pass := key
      print @(30+i,19) :'*':
  end case
repeat
echo on

At 27 JUN 1998 02:57PM Curt Putnam wrote:

To indicate the absence or presence of data, simply make the prompt a Boolean type. If there is data, the output conversion of "B" will display a Yes, otherwise a No will display. Entry/display of the real data can then be accomplished by a subroutine initiated by a softkey.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/6d76b4874c15b4e08525662d008348d1.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1