DelVar F While F,5 Output(A,E,"*" F+1F End I think that output command above might be faulty. E is the getkey variable, which is usualy greater than 16 (screen size) and would create the domain error. I'm guessing that the comma is a typo. Maybe "E" should be "F" in the output line? Hope this helps. Andrew