Re: step_two() has not been declared ???

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

-----Original Message-----
From: timmy <tim781 at PACBELL.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Saturday, January 15, 2000 10:33 PM
Subject: step_two() has not been declared ???


>Hi  i'm writting a program but I'm getting a strange
>err when I try to run the first stage. Euphoria keeps
>telling me that a procedure has'nt been declared, but,
>everything looks right??? I wrote the program below.
>
>------------
>include keyread.e
>
>object a, b, c
>atom x
>x = 0
>
>
>
>-- Step one (waiting for change)
>procedure step_one()
>while x = 0 do
>a = get_keys()
> for t = 1 to 50000 do
> c = 1
> end for
>b = get_keys()
>x = compare(a, b)
>end while
>x = 0
>step_two()
>end procedure
>-- Step one Done
>
>
>
>procedure step_two()
>
>print(1, "A =")
>print(1, a)
>print(1, "B =")
>print(1, b)
>step_one()
>end procedure
>
>step_one()
>
>---- end of program---

Hi Timmy,

    I'm not a great Euphoria programmer but I think if you swap your
procedures around it will work. At the moment you're asking your first
procedure to call another procedure that I don't think Euphoria has seen
yet.

Mark Brown

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

Search



Quick Links

User menu

Not signed in.

Misc Menu