Post Reply 
Print to stack
10-28-2022, 07:50 PM
Post: #7
RE: Print to stack
(10-28-2022 12:04 AM)forexbob Wrote:  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

"PRINT" doesn't print to the stack, guess you're talking about the HOME screen(or CAS screen). "PRINT" prints to the terminal. You can look at the terminal with <On>+<T>

For reference: on the Home screen type "PRINT" then push the Help button.
HTH, Günter
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)