[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
oSend( oObject, cMsg, xParam1, .. xParamN )-> <xReturnValue>
------------------------------------------------------------------------------
PARAMETER:
<oObject> Is the object which will receive the message to send
<cMsg> Is a message string, like "SetFocus"
<xParam1..N> are optional parameters, if needed.
RETURNS:
<xReturnValue> is the value that was returned by the receiver of the
message, if any.
DESCRIPTION:
oSend is a function that lets you send a string message to an object,
which may be a varible or a constant. With this function you can establish
a very, very late binding <g>.
Normally, to send a mesage to an object you use the send operator ':'
+------------------------------------+
| /* Set Focus */ |
| oGet:SetFocus() |
+------------------------------------+
With oSend(), you can achive the same thing with either a constant or
a variable message :
+------------------------------------+
| /* Use a Constant string */ |
| oSend( oGet, "SETFOCUS" ) |
| |
| /* or a Variable message */ |
| cMessage := "SETFOCUS" |
| oSend( oGet, cMessage ) |
+------------------------------------+
You can also access instance variables with <oSend>, please note that
that to retrieve a value you have to place an underscore before the DATA
message name:
+------------------------------------+
| /* Set a value */ |
| oSend( oGet, "SETVALUE", 1 ) |
| |
| /* Retrieve a value */ |
| nVal := oSend( oGet,"_SETVALUE" ) |
+------------------------------------+
See Also:
aSend
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson