Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem assigning string to a TOvcPictureField with a PictureMask #42

Open
MauriceI opened this issue Aug 31, 2023 · 0 comments
Open

Problem assigning string to a TOvcPictureField with a PictureMask #42

MauriceI opened this issue Aug 31, 2023 · 0 comments

Comments

@MauriceI
Copy link

Hi,

I've run into a problem when using a TOvcPictureField with a PictureMask.

In a simple test case I have a form with a single TOvcPictureField. It has a PictureMask of AA-99-9999-999 and all the other properties are left to their default. When I try to set the value to VH-88-8888-888 using the code below the field end up with a value of VH--8-8-88-88-

OvcPictureField1.AsString := 'VH-88-8888-888';

I was able to trace the issue to commit c0c2e3e. In it change, the check to strip mask characters from the input string before merging it with the mask was changed so it no longer includes strings which are the same length as the mask which is the case in this scenario.

Before changing it back I would like to understand the logic behind why this was changes and for which scenario it applies.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant