Post Reply 
Print to stack
10-28-2022, 04:10 PM (This post was last modified: 10-28-2022 04:15 PM by jfelten.)
Post: #5
RE: Print to stack
(10-28-2022 03:15 PM)forexbob Wrote:  
(10-28-2022 12:22 AM)Ioncubekh Wrote:  
Code:
EXPORT demo(a,b) // x2 arguments required by program named demo
BEGIN 
PRINT("Result A:"+a);
PRINT("Result B:"+b);
END;

At home screen type
demo("cat", "cow")
demo(3,2) //numerals only

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;
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)