- Berka Frenfert
- PowerBuilder
- Wednesday, 29 May 2019 08:35 AM UTC
I need to set this edit mask 19~05-#### to a datawindow string column through script.
In design mode i can set the same edit mask 19~05-#### and it works fine but when i try to set it in power script then this edit mask 19~05-#### crashes my app.
This is how i check the mask in code:
String theMask
theMask = dw_1.Describe("Document_Number.EditMask.Mask")
dw_1.Object.Document_Number.EditMask.Mask = theMask
Describe function in above line returns correct edit mask i used in design mode of DataWindow but modifying same edit mask generates run-time error.
Please note that there is ~ in the edit mask. That i used to make 0 no meaning other than just a zero. That works and in edit field a space is not shown instead of 0.
Is there someone who has knowledge and help me to fix that problem?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.