Post Reply 
Sub-routine returning multiple values
10-30-2017, 06:47 PM
Post: #7
RE: Sub-routine returning multiple values
Although Didier's solution uses a CAS sto, it can be used from PPL too, without requiring CAS variables:

Code:

  COORD()
BEGIN
RETURN {45,54};
END;

 EXPORT TRYL()
 BEGIN 
  LOCAL LAT,LON;
  PRINT();
  sto(COORD(),{'LAT','LON'});
  PRINT(LAT);  PRINT(LON);
END;

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Sub-routine returning multiple values - StephenG1CMZ - 10-30-2017 06:47 PM



User(s) browsing this thread: 1 Guest(s)