Post Reply 
Print to stack
10-28-2022, 12:04 AM
Post: #1
Print to stack
Hi again,

The rookie is back with another question or so.

I'm trying to print to the stack from a program. Everything online seems to make it look easy enough. However I can't get hardly anything to work.

Code:

EXPORT string(A,B)
BEGIN 
PRINT("Result A:"+A);
PRINT("Result B:"+B);
RETURN {A,B};
END;

This is a simple enough program but it does not return anything to the stack except the name of the program and the digit "1" which I assume means the program terminated correctly.

I've tried printing from the command line but if I don't get a Syntax Error I get nothing but again, the name of the program and the digit "1".

I've tried various options both in Home and CAS...no joy. What do I need to do to print a program result to the stack? Is it another one of the excessively complicated DIMGROB situations?

Thanks for your help
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Print to stack - forexbob - 10-28-2022 12:04 AM
RE: Print to stack - Ioncubekh - 10-28-2022, 12:22 AM
RE: Print to stack - forexbob - 10-28-2022, 03:15 PM
RE: Print to stack - jfelten - 10-28-2022, 04:10 PM
RE: Print to stack - forexbob - 10-28-2022, 04:54 PM
RE: Print to stack - Ioncubekh - 10-28-2022, 07:56 PM
RE: Print to stack - pinkman - 10-28-2022, 12:25 AM
RE: Print to stack - Guenter Schink - 10-28-2022, 07:50 PM
RE: Print to stack - Eddie W. Shore - 10-29-2022, 05:47 AM
RE: Print to stack - Gene222 - 10-29-2022, 09:34 PM



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