Receives in and in/out parameters for a method
- Specifies a comma-delimited list of target variables to receive the incoming data for the method.
receive_argscommand processes a list of in and in/out parameters that have been passed by a client when calling a method. Since the method's parameters cannot be passed directly to a JPL procedure, this command is how the method receives incoming data.
When processing the targets on the list, the command skips the out only parameters, and takes the other parameters in the order in which they were provided.
// This JPL procedure implements the GetCustomer method.
// The parameters are defined as:// [in, out] CompanyName
// [in] CompanyID
// [out] CustomerID
// [out] Phoneproc GetCustomer
receive_args (CompanyName, CompanyID)
call sm_tm_command ("VIEW")
return_args (CompanyName, CustomerID, Phone)