[[https://www.revelation.com/|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]]
==== Help - its late and I'm losing focus. (OpenInsight Specific) ====
=== At 24 JUL 2000 01:58:56AM Robert Lee wrote: ===
{{tag>"OpenInsight Specific"}}
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.
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=70F52B36C1B59BBE852569260020DCB2|View this thread on the forum...]]