"news.ntlworld.com" 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 passes   
   |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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|