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

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
  2. PowerBuilder
  3. # Permalink
0
Votes
Undo

Hi Markus;

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

Regards ... Chris

Comment
I've just done that. And somewhat fitting my example, I got bug #1234 :-)

  1. Markus Eckert
  2. Wednesday, 6 June 2018 06:40 AM
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 16:27 PM
  2. PowerBuilder
  3. # 1
0
Votes
Undo

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.
  1. Tuesday, 5 June 2018 12:21 PM
  2. PowerBuilder
  3. # 2
0
Votes
Undo

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
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. Markus Eckert
  2. Wednesday, 6 June 2018 06:27 AM
Agreed, I was just thinking of a work around to your problem.

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

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

Comment
Same result, even with the string(9) you end up with two empty spots at the end.

  1. Markus Eckert
  2. Wednesday, 6 June 2018 06:28 AM
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.