20 December 2023, 06:55 | #101 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,036
|
That's how Rexx works. Every value without context is sent to the current ARexx host. If it encounters a function call without context, it executes the function and sends the result to the host. If you don't want the result to be processed as a host command, you have to put it into a context.
For example assign the return value to a variable Code:
x = Delay(15) Code:
call Delay(15) |
20 December 2023, 08:18 | #102 |
Registered User
Join Date: Apr 2018
Location: Germany
Posts: 195
|
Thank you Thomas, now it works
And thanks for the explanation, too. Although I've red the ARexx manual this information passed me by. |
20 December 2023, 14:07 | #103 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,314
|
IMHO it would be better to use "waitforport" instead of the delay() loop. You also get shorter code. See ARexxGuide2 for an how to use example.
|
21 December 2023, 06:14 | #104 |
Registered User
Join Date: Apr 2018
Location: Germany
Posts: 195
|
Thanks, daxb, I'll have a look at that. I'm always interested in better readable code.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AmigaDOS scripting resources | Photon | Coders. System | 26 | 19 March 2018 14:51 |
Very Basic Scripting. Confused. | marduk_kurios | Coders. System | 5 | 06 February 2014 11:13 |
UAE Scripting Layer | FrodeSolheim | support.FS-UAE | 15 | 26 January 2014 15:56 |
C= 64 BASIC as a Scripting Language | Charlie | Retrogaming General Discussion | 2 | 17 November 2008 14:23 |
|
|