[fpc-pascal] Re: Request redirection + login session in fpweb

2012-03-31 Thread leledumbo
Found it in the combined example project, set Session.SessionCookiePath to the same string, whatever it is. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Request-redirection-login-session-in-fpweb-tp5602126p5609810.html Sent from the Free Pascal - General maili

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread cobines
2012/3/31 Jonas Maebe : > > On 31 Mar 2012, at 12:07, cobines wrote: > >> The following program compiles and correctly prints 'something'. Is it >> something supported or a bug? > > It is supported. Even Turbo Pascal already supported passing a single element > as an open array parameter. Thanks.

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread Jonas Maebe
On 31 Mar 2012, at 20:43, Martin wrote: > On 31/03/2012 19:34, Jonas Maebe wrote: >> It is supported. Even Turbo Pascal already supported passing a single >> element as an open array parameter. > > Interesting, yet the following overloaded functions, compile too. In other > cases, if more than

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread Martin
On 31/03/2012 19:34, Jonas Maebe wrote: On 31 Mar 2012, at 12:07, cobines wrote: The following program compiles and correctly prints 'something'. Is it something supported or a bug? It is supported. Even Turbo Pascal already supported passing a single element as an open array parameter. In

Re: [fpc-pascal] Passing a string to open array of string

2012-03-31 Thread Jonas Maebe
On 31 Mar 2012, at 12:07, cobines wrote: > The following program compiles and correctly prints 'something'. Is it > something supported or a bug? It is supported. Even Turbo Pascal already supported passing a single element as an open array parameter. > When I change it to Proc('something') it

[fpc-pascal] Re: Is there a function that returns UTC time in FPC or Lazarus?

2012-03-31 Thread Frank Church
On 30 March 2012 15:05, Frank Church wrote: > When I get the time via the DateTime function result is adapted for > the timezone, making it an hour ahead now? > > Is there a function that returns the UTC time, either as a UnixTime or > TDateTime irregardless of timezone? > > -- > Frank Church > >

[fpc-pascal] Passing a string to open array of string

2012-03-31 Thread cobines
Hello. The following program compiles and correctly prints 'something'. Is it something supported or a bug? When I change it to Proc('something') it doesn't compile (as expected). program Project1; {$mode objfpc}{$H+} procedure Proc(const s: array of string); begin WriteLn(s[0]); end; var s

[fpc-pascal] Re: [Lazarus] Is there a function that returns UTC time in FPC or Lazarus?

2012-03-31 Thread João Marcelo Vaz
2012/3/30 Reinier Olislagers > On 30-3-2012 16:05, Frank Church wrote: > > When I get the time via the DateTime function result is adapted for > > the timezone, making it an hour ahead now? > > > > Is there a function that returns the UTC time, either as a UnixTime or > > TDateTime irregardless o