[fpc-pascal] add a string to existed open array

2012-01-31 Thread ik
Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets. The thing is, that A must be before the rest of b. and it is different then the b values, that's why I extract it to a different

Re: [fpc-pascal] add a string to existed open array

2012-01-31 Thread Sven Barth
Am 31.01.2012 09:55, schrieb ik: Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets. The thing is, that A must be before the rest of b. and it is different then the b values,

Re: [fpc-pascal] add a string to existed open array

2012-01-31 Thread ik
On Tue, Jan 31, 2012 at 11:19, Sven Barth pascaldra...@googlemail.comwrote: Am 31.01.2012 09:55, schrieb ik: Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets. The

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-31 Thread waldo kitty
On 1/30/2012 03:26, zeljko wrote: On Monday 30 of January 2012 08:35:23 waldo kitty wrote: i may have easily misunderstood the OP's post... i tend to read in literan english format... ie: if you say eggs are round, that is where i base my response unless it is very obvious that there is

[fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Luciano de Souza
Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$', now)); The answer was: 31$01$2012 Yes, the problem

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Michael Van Canneyt
On Wed, 1 Feb 2012, Luciano de Souza wrote:     Hello listers,  A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$',