DCGET PICTURE "(999)999-9999" problem

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET PICTURE "(999)999-9999" problem

#11 Post by rdonnay »

What is the problem with the picture?
It works for me.
The eXpress train is coming - and it has more cars.

Diego Euri Almanzar
Posts: 167
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

Re: DCGET PICTURE "(999)999-9999" problem

#12 Post by Diego Euri Almanzar »

When you get to a field with a phone-like picture, it's normal to start typing numbers. And precisely when you start to type the numbers, the cursor returns back, and is placed on top of the left parenthesis, and the keyboard inputs are blocked.

To get the cursor out of that inertia, press the right arrow key. And, this situation is very uncomfortable for users. In version 1.90, this did not happen to me. It only happens to me after I compile my project with version 2.0

Best regards.
Attachments
GETPHONEXPRESS.jpg
GETPHONEXPRESS.jpg (23.82 KiB) Viewed 1813 times

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET PICTURE "(999)999-9999" problem

#13 Post by rdonnay »

I agree that this appears to be a problem with Xbase++ 2.0.

I'll see if I can give you a workaround.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET PICTURE "(999)999-9999" problem

#14 Post by rdonnay »

Here is a fix for you:

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], cPhone

cPhone := Space(13)

@ 0,0 DCSAY 'Phone' GET cPhone PICTURE '(999)999-9999' ;
      GETEVAL {|o|o:savePos := 2}

DCREAD GUI FIT

RETURN nil


PROC appsys ; return
The eXpress train is coming - and it has more cars.

Diego Euri Almanzar
Posts: 167
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

Re: DCGET PICTURE "(999)999-9999" problem

#15 Post by Diego Euri Almanzar »

Done, fixed.

It worked very well for me.

Thank you Roger.

Post Reply