Re: [fpc-pascal] Varriable number of parameters

2005-05-12 Thread Michalis Kamburelis
Anandu R Suri wrote: Hi, how can I create procedure with undefined number of parrameters. Writeln is example of what I am looking for for example procedure add(a,b,c, var result) Pianoman Declare a Function or a procedure as MyProc(P1: String; Args: Array of Const); And as Michael Van Canne

Re: [fpc-pascal] Varriable number of parameters

2005-05-12 Thread Anandu R Suri
Hi, how can I create procedure with undefined number of parrameters. Writeln is example of what I am looking for for example procedure add(a,b,c, var result) Pianoman Declare a Function or a procedure as MyProc(P1: String; Args: Array of Const); And as Michael Van Canneyt said, you can us

Re: [fpc-pascal] Varriable number of parameters

2005-05-11 Thread Michael Van Canneyt
On Wed, 11 May 2005, Pianoman wrote: Hi, how can I create procedure with undefined number of parrameters. Writeln is example of what I am looking for for example procedure add(a,b,c, var result) If the function must be written in pascal, all you can do is use the array of const construction: F

[fpc-pascal] Varriable number of parameters

2005-05-11 Thread Pianoman
Hi, how can I create procedure with undefined number of parrameters. Writeln is example of what I am looking for for example procedure add(a,b,c, var result) Pianoman - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, May 11, 2005 12:00 PM Subject: fpc-pascal Digest, V