Director Question
1 messages in this thread
I've noticed that recently there's been some traffic on the board about using
the Director. I'm playing around, trying to port a relatively slow application
from AmigaVision to the Director – and having pretty good success on what I
thought would be the difficult sections,
However, I've run into a problem that seems so basic that I just can't figure
it out. I'd appreciate any help from anybody.
Here's the problem, I'm trying to read a message from another ARexx program
(which I have done) and act upon it depending on what it is (there's the rub).
Here's what I have (line numbers added for easy reference):
0. New 1,320,200,2
1. DIM msg[100]
2. move 10,10
3. TEXT "Start"
4. /loop:
5. REXX "TEST",result
6. if result = 0 then goto loop
7. REXX "RCV",msg
8. REXX "REPLY",0
9. if msg$ = "Hello" then TEXT "Hello"
10. clear
11. goto loop
The problem comes every time I run it I get an "Invalid Expression" error and
it flags line 9, the 'IF…THEN' statement. I've tried every combination I can
thing of with quotes, as well as "msg" with and without a '$' at the end to
denote the string, but it keeps choking.
I can probably figure a work-around, but I shouldn't have to… what am I
doing wrong?
Thanks again… Joe