Re: TIB: Domain error


[Prev][Next][Index][Thread]

Re: TIB: Domain error




browningn@usa.net wrote:
> 
> I am working on a game. I am trying to get characters to randomly scroll down the screen. This should work but i get a domain error everytime i run it. Can any one see any problems in my code?
> 
> 8/->/x
> Lbl B
> IF x==8:Goto A
> (x+1)/->/x
> Outpt(x,y,"x")  <- i get the error right here
> Outpt(x-1,y," ")
> Goto B
> Lbl C
> (rand*20)/->/y
> If y>7 and y<21
> Then:Goto B
> Else:Goto C

A good way to check a program is to put little "hello's" in it, so that
you can see what the program does prior to crashing, i.e. try DISP'ing y
just after it has been assigned its value, to see what happens.

-- 
          Rene Kragh Pedersen
------------------------------------------------------------------
Apparently my clothes are defective.
 - Dilbert.


References: