{{tag>category:"OpenInsight 32-Bit" author:"Matthew Jones" author:"The Sprezzatura Group"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== getstructureflag (OpenInsight 32-Bit) ====
=== At 02 APR 2004 10:43:09AM Matthew Jones wrote: ===
windowname=Start_Window (windowID, parentID, createparam, getstructureflag, instance)
getstructureflag: Pass true, to return the structure of a window, without actually executing it.
I can't get this seemingly simple statement to work.
I have the following in a stored procedure, but when I run it, the window is executed and displayed, and my variable x has nothing in it.
x=Start_Window( "MYWINDOW", "", "", 1 )
Can someone tell me how to get this working as documented please.
Thanks.
----
=== At 02 APR 2004 11:04AM The Sprezzatura Group wrote: ===
This works for us
x=Start_Window ('ZZ_IDE_TCL',@Window, '', 1, '')
The Sprezzatura Group
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 02 APR 2004 11:23AM Matthew Jones wrote: ===
So what I found was -
1. if I run the stored procedure from the Exec line in the System Editor (which is what I was doing, trying to just prove the code), the window is executed and displayed!
2. if I call the stored procedure from event code it works as expected.
Any ideas why? (sorry to be a pain, just trying to understand)
----
=== At 02 APR 2004 11:26AM The Sprezzatura Group wrote: ===
[i]guessing[/i] that the Exec line is NOT event context and so there is no @Window...
The Sprezzatura Group
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=3FA87E3480E4E82B85256E6A0050DAF0|View this thread on the Works forum...]]