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
DEBUGx=Get_Property(@WINDOW, 'FOCUS')swap '1' with '2' in xx=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!
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
Ok. I found the problem. The destination table was both disabled and read only.
One of those days I guess…
Thanks anyway Simon.