Post Reply 
Print to stack
10-28-2022, 04:54 PM
Post: #6
RE: Print to stack
(10-28-2022 04:10 PM)jfelten Wrote:  
(10-28-2022 03:15 PM)forexbob Wrote:  Thanks, this almost worked. It only sends item B to the stack and omits item A. It's frustrating that something so simple can turn to be so complicated. Any ideas on that?
Thanks again,
Bob

try this:
Code:
EXPORT demo(a, b)
BEGIN 
PRINT("Result A: "+a);
PRINT("Result B: "+b);
return {a, b};
END;

This does return the two input values to the stack in a list but I was hoping to have the values returned to different levels in the stack. i.e Result "a" on level 2 and result "b" on level 1.
I don't think I explained myself properly initially. Having now been more specific, any ideas?

Thanks
Bob
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)