How to get error code from Interpreter ?

new topic     » topic index » view thread      » older message » newer message

I am running pgm #52 from 'A-Beginners-Guide-To-Euphoria-OffLine.htm' And all I get back is a Black screen flash, then back to Windows.
Please, tell me what is wrong with the pgm, and how can I get the Interpreter to tell me what's wrong; Error code or something?
Thanks!

\\ 
with trace 
   trace(1) 
include file.e 
include get.e 
include wildcard.e 
include graphics.e 
include machine.e 
--  
-- demo program 52 
 
integer foreground_colour 
sequence list_of_colours, already_used 
 
clear_screen() 
 
list_of_colours = {"blue","green","cyan","red","magenta","brown", 
                   "white","gray","bright blue","bright green", 
                   "bright cyan","bright red","bright magenta", 
                   "yellow","bright white"} 
 
already_used = {} 
 
for ix = 1 to 10 do 
     foreground_colour = rand(15) 
     while find(foreground_colour,already_used) do 
          foreground_colour = rand(15) 
     end while 
     already_used = already_used & foreground_colour 
     text_color(foreground_colour) 
     printf(1, "Text in %s\n",{list_of_colours[foreground_colour]}) 
end for 
 
-- 
keystroke = wait_key() 
 
 
\\ 
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu