1. Markus Eckert
  2. PowerBuilder
  3. Tuesday, 5 June 2018 09:58 AM UTC

Hi

I've got a Datawindow Column (of type string(9)) with an EditMask of ###-###-###.

If I paste the string 123456789 into this field, I get this:

Am I doing something wrong or is an EditMask just not suited for Copy&Paste?

Regards,

Markus

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 14:47 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Markus;

  I confirmed the same issue this morning in PB2017R2 build 1769. Please open a support ticket for this issue.

Regards ... Chris

Comment
  1. Markus Eckert
  2. Wednesday, 6 June 2018 06:40 AM UTC
I've just done that. And somewhat fitting my example, I got bug #1234 :-)

  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 16:27 PM UTC
  2. PowerBuilder
  3. # 1

Hi Markus,

 

I was able to reproduce it on PowerBuilder 2017 R2 build 1769. Please open support ticket as Chris said.

 

Regards,

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 12:21 PM UTC
  2. PowerBuilder
  3. # 2

Use format @@@-@@@-@@@ insted of editmask. This will allow you to paste in 123456789 and then will format it after you tab off.

Not use if that meets you needs but it certainly works for me.

Cheers

David

Comment
  1. Markus Eckert
  2. Wednesday, 6 June 2018 06:27 AM UTC
Yeah, Display Formats seem to work fine, but they're not as helpful for data entry when you have long data like a 20+ character IBAN or a 27 digit payment reference.

  1. Helpful
  1. David Peace (Powersoft)
  2. Wednesday, 6 June 2018 13:27 PM UTC
Agreed, I was just thinking of a work around to your problem.

  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 11:55 AM UTC
  2. PowerBuilder
  3. # 3

Looks like it's counting the "-" as characters.  Have you tried String(11)?

Comment
  1. Markus Eckert
  2. Wednesday, 6 June 2018 06:28 AM UTC
Same result, even with the string(9) you end up with two empty spots at the end.

  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.