Welcome, Guest. Please login or register.

Author Topic: Question from an ARexx newbie  (Read 2360 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Matt_HTopic starter

Question from an ARexx newbie
« on: June 10, 2009, 09:33:11 PM »
I'm trying to use ARexx to create a remote control for Amplifier. Amplifier has the command VOLUME which returns the current volume when passed no arguments and sets the new volume when passed a number.

As my ARexx manuals aren't with me right now, can anyone walk me through converting the logical expression VOLUME=VOLUME+1 into real ARexx syntax?

Thanks
 

Offline Matt_HTopic starter

Re: Question from an ARexx newbie
« Reply #1 on: June 10, 2009, 11:40:23 PM »
Thanks for that, but where does the returned value of VOLUME go? Does it actually go to RESULT? If that's the case, I'm having some data type issues, since the subsequent lines of the example treat it as the letters R E S U L T rather than a number.
 

Offline Matt_HTopic starter

Re: Question from an ARexx newbie
« Reply #2 on: June 10, 2009, 11:56:14 PM »
Quote from: Daedalus;510484
Crap! Don't forget to put OPTIONS RESULTS at the top of your script - like I did ;) Without it ARexx is unable to accept RESULTS values...


Bingo! Thanks.