Subject Re: PasswordMaskEF.cc bug?
From Lee Grant <camilee@nospam.comcast.net>
Date Wed, 21 Feb 2024 03:18:35 -0500
Newsgroups dbase.getting-started

Ooops, the actual Procedure is the IsValidChar(char) method. sheepish
grin. :)

Lee

On 2/21/2024 3:17 AM, Lee Grant wrote:
> Ken, et al,
>
> The fix is to add the "/" character in this isValid(nchar) method, which
> I've done here. Close and reopen dBASE and it will act like any other
> legal character and put a dot there, instead of the '/' character.
>
>
>     Procedure IsValidChar(char)
>        // Make sure entered key is alphanumeric
>        private returnValue
>
>        do case
>           case isalpha(char)                        // Letter?
>              returnValue = true
>           case char >= "0" and char <= "9"          // Digit?
>              returnValue = true
>           // if you need to allow others, add them here:
>           case char $ "!@#$%^&*()_-+/"               // Special
> characters <-- I added it at the end.
>              returnValue = true
>           otherwise                                 // Invalid?
>              returnValue = false
>        endcase
>     return returnValue
> endclass
>
> Lee
> On 2/20/2024 7:23 PM, Ken Mayer wrote:
>> On 2/20/2024 1:01 PM, Charlie wrote:
>>> Sounds like it may be something on Window's end.
>>
>> Honestly, I have no idea. I doubt this one is specifically "Windows'
>> end", I don't use that control, so haven't tried to put in those
>> characters. Not sure why they aren't ignored.
>>
>> Ken
>>
>