Re: Calling a procedure

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

Works for me. What is the error message you are getting?

jbrown

On Sat, Jul 05, 2003 at 01:01:07AM +0000, jondolar wrote:
> 
> 
> Derek Parnell wrote:
> > 
> > 
> > ----- Original Message -----
> > From: "jondolar" <lavigne.s at videotron.ca>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Saturday, July 05, 2003 10:06 AM
> > 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 ()
> > 
> > It stil doesn't work (with Parenthesis)
> 
> arghh
> > 
> > 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
> 

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   | http://verify.stanford.edu/evote.html

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

Search



Quick Links

User menu

Not signed in.

Misc Menu