Re: Calling a procedure
----- Original Message -----
From: "jondolar" <lavigne.s at videotron.ca>
To: "EUforum" <EUforum at topica.com>
Subject: Calling a procedure
>
>
> Hi everybody. Another newbie question. Here is a bit of code....
>
> include get.e
> object x,i
> x = "Jos"
> procedure ABC()
> position (10,10)
> puts(1,x)
> puts (1,"\n")
> i = wait_key()
> end procedure
>
> ABC
>
> This does not work. I just see the console window briefly with nothing
> on it. Yet If I remove procedure...end procedure, it works perfectly.
> This must be very simple. Sorry to waist your time
>
To call the procedure named "ABC" you need to say "ABC()". In your example
you just have "ABC" after the "end procedure" line, without the parenthesis.
include get.e
object x,i
x = "Jos"
procedure ABC()
position (10,10)
puts(1,x)
puts (1,"\n")
i = wait_key()
end procedure
ABC() ----<< USES ()
|
Not Categorized, Please Help
|
|