|
|
|
|
| RECEIVE VARIABLE |
On weekends we help you brush up on your 4D vocabulary.
RECEIVE VARIABLE (variable)
| Parameter | Type | Description | | variable | Variable | Variable in which to receive |
RECEIVE VARIABLE receives variable, which was previously sent by SEND VARIABLE from the document or serial port previously opened by SET CHANNEL.
In interpreted mode, if the variable does not exist prior to the call to RECEIVE VARIABLE, the variable is created, typed and assigned according to what has been received. In compiled mode, the variable must be of the same type as what is received. In both cases, the contents of the variable are replaced with what is received.
Notes 1. If you receive a variable from a document using this command, the document must have been opened using the SET CHANNEL command. You cannot use RECEIVE VARIABLE with a document opened with Open document, Append document or Create document.
2. This command does not support array variables. If you want to send and receive arrays from a document or over a serial port, use the new BLOB commands introduced in version 6.
3. During the execution of RECEIVE VARIABLE, the user can interrupt the reception by pressing Ctrl-Alt-Shift (Windows) or Command-Option-Shift (Macintosh). This interruption generates an error -9994 that you can catch with an error-handling method installed using ON ERR CALL. Usually, you only need to handle the interruption of a reception while communicating over a serial port. |
|
Submit a Tip Archive  |
|
|
 |
|
|
|
| Olympic Winter Games in Vancouver |
The Olympic Winter Games will be held in Vancouver, Canada from February 12th to 28th this year. The Winter Olympics have been held in Canada before, but not in Vancouver. Approximately 2,500 athletes will compete in 15 sports and over 86 separate medal events. |
|
Suggest a Spotlight
|
|
|
 |
|
|
|
Today, we asked you...
|
| In its production environment, how much of your 4D programming work runs using 4D Server (as opposed to standalone/single-user)? |
|
Your vote: (no vote)
Total votes received: 69
Survey submitted by Bill Weale
|
|
Suggest a Survey
|
|
|
 |
|