Re: Coming From QBasic

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

Thank you!

Love & Friendship & Blessed Be!
Lynn Erika Kilroy


>From: Jason Gade <guest at RapidEuphoria.com>
>Reply-To: EUforum at topica.com
>To: EUforum at topica.com
>Subject: Re: Coming From QBasic
>Date: Tue, 17 Jan 2006 11:30:15 -0800
>
>
>posted by: Jason Gade <jaygade at yahoo.com>
>
>Lynn Kilroy wrote:
> >
> > cc.ex:3
> > Graphics_Mode has not been declared
> > Graphics_Mode (260)
> >             ^
> > ========================
=========================
==============
> >
> > include ..\..\Include\graphics.e
> >
> > Graphics_Mode (260)
> >
> > print (1, 768 / 8)
> >
> > ========================
=========================
==============
>
>Euphoria is case sensitive. Graphics_Mode(260) is not the same as
>graphics_mode(260).
>
>Try this:
>}}}
<eucode>
>include graphics.e -- needed for graphics_mode()
>include get.e -- needed for wait_key()
>
>integer old_gr -- a place to store the old graphics mode
>integer key -- a place to store a keypress
>
>old_gr = graphics_mode(260) -- note, this is a function, not a procedure=

>print(1, 768 / 8)
>
>key = wait_key() -- wait until any key is pressed
>old_gr = graphics_mode(-1) -- return to default graphics mode
></eucode>
{{{

>
>I've tested this and it works under Windows XP pro. It's DOS, of course,=

>but it still works if run by ex.exe.
>
>Does that clear anything up?
>
>--
>"Actually, I'm sitting on my butt staring at a computer screen."
>                                                   - Tom Tomorrow
>
>j.
>
>
>
>


Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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

Search



Quick Links

User menu

Not signed in.

Misc Menu