Re: [fpc-pascal] Parameters to Format()

2012-05-25 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 25 May 2012, Mark Morgan Lloyd wrote: How should I put this? procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: array of variant; fg: TColor= clBlack; bg: TColor= clDefault); var scratch: widestring; begin scratch := Format(s

Re: [fpc-pascal] Parameters to Format()

2012-05-25 Thread dhkblaszyk
You should do: type MyVarArray = array of variant; and then procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: MyVarArray; fg: TColor= clBlack; bg: TColor= clDefault); Darius On 25 mei '12, Mark Morgan Lloyd wrote: > How should I put this? > > procedure

Re: [fpc-pascal] Parameters to Format()

2012-05-25 Thread Michael Van Canneyt
On Fri, 25 May 2012, Mark Morgan Lloyd wrote: How should I put this? procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: array of variant; fg: TColor= clBlack; bg: TColor= clDefault); var scratch: widestring; begin scratch := Format(str, values); As above, I

[fpc-pascal] Parameters to Format()

2012-05-25 Thread Mark Morgan Lloyd
How should I put this? procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: array of variant; fg: TColor= clBlack; bg: TColor= clDefault); var scratch: widestring; begin scratch := Format(str, values); As above, I get unyokedfrontendcode.pas(354,32) Error: Inco