In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Return values from windows

Xailer professional forum in English
Mahanimann
Mensajes: 216
Registrado: Dom Sep 23, 2007 11:08 pm

Return values from windows

Mensaje por Mahanimann »

Hi,
I need to receive values from windows. F.ex. the user chooses a record in a
browse pop-up window, the pop-up window closes, and the calling window
receives the value chosen (can be of any datatype).
With my very limited knowledge about Xailer/xHarbour I have solved this
(i.e. to get a return value from a window) with this:
CLASS TForm FROM XForm
DATA xReturnVal_From_PopUp_Window
END CLASS
The parent (oParent) in all pop-up windows are set to the calling window.
When the pop-up window closes, it puts the return value into
::oParent:xReturnVal_From_PopUp_Window.
This works fine, but there must be a neater way to do this? (Tweaking with
:nModalResult gave me only trouble :-) )
Thanks for any reply,
Paal
Responder