Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: turbo pasca...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 18 of 21 Topic 1051 of 1118
Post > Topic >>

Re: turbo pascal 4.5

by pgx@[EMAIL PROTECTED] Sep 10, 2007 at 07:26 PM

"news.ntlworld.com" <uk_letter_writer@[EMAIL PROTECTED]
> wrote:

|i haven't ignored any of you - i tried version 5.5 and the syntax of the 
|language has changed between version 4 and 5.5 - i admit 4.5 must have
been 
|a mistake as you all say 4.5 didn't exist but it was definitely 4...
|
|i have loaded the code in and even simple lines, for instance after
defining 
|"function colour(colourparam :byte) :byte;" which the compiler p***** 
|perfectly it fails in the implementation stage at:
|
|function colour(colourparam :byte); <- it says it expects a : instead of
the ;

The syntax that is correct is:

function colour;

You can omit the paramaters in the function or procedure declaration,
but you must omit them all (this is in BP7, the only one I still have
available).  If you specify any parameters, they must match the
original exactly.

As mentioned in another post, this may have been allowed in error in
whatever TP version you used.

It is the same in Delphi.

Phil
 




 21 Posts in Topic:
turbo pascal 4.5
"news.ntlworld.com&q  2007-09-07 23:08:54 
Re: turbo pascal 4.5
Alan <alan@[EMAIL PROT  2007-09-07 23:32:24 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-08 05:07:17 
Re: turbo pascal 4.5
Marco van de Voort <ma  2007-09-08 08:07:41 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-08 09:54:07 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-08 10:28:49 
Re: turbo pascal 4.5
Robert Riebisch <Rober  2007-09-08 21:12:49 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-08 19:57:47 
Re: turbo pascal 4.5
Robert Riebisch <Rober  2007-09-08 22:18:56 
Re: turbo pascal 4.5
Marco van de Voort <ma  2007-09-08 20:24:33 
Re: turbo pascal 4.5
prino <prino@[EMAIL PR  2007-09-08 15:49:49 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-09 09:45:55 
Re: turbo pascal 4.5
hartnegg <hartnegg@[EM  2007-09-09 03:10:12 
Re: turbo pascal 4.5
Robert Riebisch <Rober  2007-09-09 22:06:56 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-10 05:06:00 
Re: turbo pascal 4.5
Marco van de Voort <ma  2007-09-10 05:40:29 
Re: turbo pascal 4.5
"Sven Pran" <  2007-09-10 11:39:04 
Re: turbo pascal 4.5
pgx@[EMAIL PROTECTED]   2007-09-10 19:26:51 
Re: turbo pascal 4.5
Robert Riebisch <Rober  2007-09-10 21:26:13 
Re: turbo pascal 4.5
Dr J R Stockton <jrs@[  2007-09-11 15:46:00 
Re: turbo pascal 4.5
"news.ntlworld.com&q  2007-09-11 23:30:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 16:05:34 CDT 2008.