Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 24 JUL 2000 01:58:56AM Robert Lee wrote:

A simple bit of code that refuses to work. Good quality code thats in denial… All I am trying to achive is switching focus from .TABLE_1 to .TABLE_2 when I get to Column 7 of TABLE_1.

This comes from the Poschanged event in CR_INVOICE : '.TABLE_1'

IF NextColumn=7 THEN

DEBUG
x=Get_Property(@WINDOW, 'FOCUS')
swap '1' with '2' in x
x=Set_Property(x, 'FOCUS', 1)

END

x=CR_INVOICE.TABLE_1

x=CR_INVOICE.TABLE_2 (after swap)

When I check properties for CR_INVOICE (the window), focus is still on CR_INVOICE.TABLE_1.

Help!


At 24 JUL 2000 03:40AM Simon W wrote:

Robert,

2 things - with the debug where it is, the Get_Property will not function correctly as the debug window is the one in focus,

and have you tried doing a Send_Event to the GotFocus event of the second table …

Best of luck

Simon


At 25 JUL 2000 02:27AM Robert Lee wrote:

Ok. I found the problem. The destination table was both disabled and read only.

One of those days I guess…

Thanks anyway Simon.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/70f52b36c1b59bbe852569260020dcb2.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1