RECEIVER property

System.

Get_Property() returns an object that was set as receiver of messages sent through the OpenEngine C interface.

Set_Property() sets a control indicated in object (only an edit box is supported) as a receiver of data sent through the OpenEngine C interface using the Send_Dyn method.

Some stored procedures, like RLIST (with target of 1), LIST_USERS, and most of the system procedures marked as Command Line, send their data to a client program, like the system editor, using a method called Send_Dyn. To support the capture of this information, the RECEIVER property specifies an edit box control that will receive the information.

object = Get_Property("SYSTEM", "RECEIVER")

oldobject = Set_Property("SYSTEM", "RECEIVER", newobject)

* capture text results of list_users in the edit box EDITBOX_RESULTS.

declare function get_property
declare subroutine set_property

Set_Property ("SYSTEM", "RECEIVER", @window: ".EDITBOX_RESULTS")
Set_Property (@window: ".EDITBOX_RESULTS", "TEXT", "")
Call List_Users("")
Users = Get_Property (@window: ".EDITBOX_RESULTS", "TEXT")

* reset the receiver property to null.
Set_Property ("SYSTEM", "RECEIVER", "")
  • guides/programming/programmers_reference_manual/receiver.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1