
DQL - Setcurrent & Setstate
Dear all
Can we use a "manip" field with the set of instructions as follows :
setstate ("manip", 0 )+ SetCurrent("WindowBorder","NoEdge")+SetCurrent("WindowClass","Modal")+ SetCurrent("WindowPos","10","80"),
in a body of a DQL procedure, in order to "print" the report in the display ?
In fact, I tried but I can't get a modal window! The size and position is working but the instructions "setstate ("manip", 0 )+ SetCurrent("WindowBorder","NoEdge")+SetCurrent("WindowClass","Modal")" , not really.
Thanks
Afonso
Hi Afonso.
You can't do it in body as the Body on the "old style DQL" is not properly part of the GUI system.
However we did a test and you can do it from inside the DQL.
Define "retval" text .
retval := SetCurrent("WindowBorder","NoEdge")+SetCurrent("WindowClass","Modal")+ SetCurrent("WindowPos","10","80") .
Be careful though because if you set a window to be modal you can't do anything in the rest of the app until you close it etc.
So make sure you have an exit or you will have to kill DataEase (we had too ;-).
Cheers.