1. Konstantin Goldobin
  2. PowerBuilder
  3. Wednesday, 10 April 2019 13:41 PM UTC

Hello,

I have a char(2000) column in a datawindow that uses the EditMask edit style with an edit mask of 2000 'X's. However, I cannot enter more than 255 characters in it. I tried this in PB12.5 and PB17r3. I could not find any information about a limit of the EditMask edit style so I'm wondering if anybody knows anything about this.

Best regards,
Konstantin

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 April 2019 19:16 PM UTC
  2. PowerBuilder
  3. # 1

Hi Konstantin;

  Yes, the internal limit on any Edit Mask is 255 characters.

Regards ... Chris

Comment
  1. Konstantin Goldobin
  2. Thursday, 11 April 2019 07:18 AM UTC
Thank you, Chris! Do you think it is mentioned anywhere in the documentation?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 11 April 2019 19:12 PM UTC
No, that was just from my memory from using PB in the old PowerSoft days.

I did check the PB documentation but I cannot see the length limitation listed - even in the PS documentation. However, reverse engineering the PBCAT tables - in particular where the Edit Masks are stored from the DB Painter (pbcatedt) - you see that the DB column "pbe_edit" is declared as VarChar (254). So I'm pretty confident that my old (no wise cracks here) synapse joints are still working OK for the 255 (0-254) as the maximum value . ;-)
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 10 April 2019 14:09 PM UTC
  2. PowerBuilder
  3. # 2

The X in an EditMask means to show any character. Why would you use an EditMask on a 2000 character column and set it to all X? It kind of defeats the purpose.

Comment
  1. Konstantin Goldobin
  2. Thursday, 11 April 2019 07:51 AM UTC
Hello Roland! I'd surmise that the original programmer wanted to emulate the Limit property of the Edit edit style for EditMask so that the user cannot enter more characters than the length of the field.
  1. Helpful
  1. Shenn Sellers
  2. Thursday, 11 April 2019 16:05 PM UTC
If you change the column back to an EDIT this will give you a LIMIT property which you can then set to 2000.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.