1. RE: Calling a procedure

Derek Parnell wrote:
> 
> 
> ----- 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 ()
> 
> It stil doesn't work (with Parenthesis)

arghh
> 
>

new topic     » topic index » view message » categorize

2. RE: Calling a procedure

No error message whatsoever. When I save the source code, it does not 
have the exw extension though. BTW I'am using MEditor.

Serge

jbrown105 at speedymail.org wrote:
> 
> 
> 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 message » categorize

3. RE: Calling a procedure

jondolar wrote:
> 
> 
> Hi everybody
> 
> Remember I mentioned that the the program test did not have the 
> extention .exw. I renamed it with the extention and yes it runs 
> perfectly. But one question remains; why the program declared as a 
> procedure dit not run from the Meditor (not compiling) while the same 
> program without procedure...end procedure was running perfectly and 
> produced a program with the proper extention? There lies the mistery! 
> 
> Any idea?
> 
> Thanks
> 
> Serge Lavigne
> 
I did some further testing and the Meditor behaved differently this 
time. In the Meditor I copied the program, opened a new file and pasted 
the program then press F5 to run it. This time, Meditor asked to save 
the program firs, did it with the proper extention then ran the program 
flawlesly. Strange....?

Serge Lavigne

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu