1. Hussain Albloshi
  2. PowerBuilder
  3. Sunday, 7 July 2024 04:11 AM UTC

The cursor does not move between fields using the Enter key 

please I am facing a problem with moving between fields in version 2022 R3 Build 3356 Runtime 22.2.0.3356,
as the cursor does not move between fields in this way i have 2 data windows i am using this commands

 

IF dw_info.getcolumn()=1 then
dw_info.setcolumn(2)
dw_info.setfocus()

ElseIF dw_info.getcolumn()=2 then
dw_info.setcolumn(3)
dw_info.setfocus()

ElseIF dw_info.getcolumn()=3 then
dw_info.setcolumn(4)
dw_info.setfocus()

ElseIF dw_info.getcolumn()=4 then
dw_info.setcolumn(5)
dw_info.setfocus()

ElseIF dw_info.getcolumn()=5 then
dw_info.setcolumn(6)
dw_info.setfocus()

ElseIF dw_info.getcolumn()=6 then
dw_master.setcolumn(1)
dw_master.setfocus()
End if

 

 

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Monday, 8 July 2024 06:11 AM UTC
  2. PowerBuilder
  3. # 1

Probably this would help

Make the ENTER key act as TAB key - Real's PowerBuilder How-to (rgagnon.com)

This makes enter key to behave like a tab key.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 7 July 2024 14:24 PM UTC
  2. PowerBuilder
  3. # 2

Hi Hussain;

  It could be because your trying to do all this on the Enter key where the DW is also trying to perform validation, keyboard to primary buffer data moves, edit mask checking, etc. That could be interfering with your code.

  I would suggest that you move this code to a User Event and then "post" that UE from the current event. That should let the DW complete it's processing before your code tries to take over.  HTH

Regards... Chris 

Comment
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.