Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Michael Van Canneyt
On Fri, 4 May 2012, Mattias Gaertner wrote: On Fri, 04 May 2012 17:22:16 +0200 dhkblas...@zeelandnet.nl wrote: I'm creating a script to be executed by instantfpc when I noticed that paramstr(0) does not reflect the location of the script but the location of the cached executable. Is there

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Sat, May 5, 2012 09:22, Michael Van Canneyt wrote: > On Fri, 4 May 2012, Mattias Gaertner wrote: >> On Fri, 04 May 2012 17:22:16 +0200 >> dhkblas...@zeelandnet.nl wrote: >> >>> >>> >>> I'm creating a script to be executed by instantfpc when I noticed >>> that paramstr(0) does not reflect the loc

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Fri, May 4, 2012 21:58, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: >> 1) Find the first alphabetic character after the first line (which is >> already processed/skipped by InstantFPC anyway) while ignoring all >> whitespaces and possible comments (in all allowed forma

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Jonas Maebe
On 05 May 2012, at 14:02, Tomas Hajny wrote: > My proposal is platform independent (i.e. it will work also under Win32, > OS/2, etc., without any changes). Your proposal probably requires starting > the compiled binary using platform specific API functions to run it with a > modified environment

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Mattias Gaertner
On Sat, 5 May 2012 14:02:12 +0200 (CEST) "Tomas Hajny" wrote: > On Sat, May 5, 2012 09:22, Michael Van Canneyt wrote: > > On Fri, 4 May 2012, Mattias Gaertner wrote: > >> On Fri, 04 May 2012 17:22:16 +0200 > >> dhkblas...@zeelandnet.nl wrote: > >> > >>> > >>> > >>> I'm creating a script to be exe

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Mattias Gaertner
On Sat, 5 May 2012 14:07:01 +0200 (CEST) "Tomas Hajny" wrote: > On Fri, May 4, 2012 21:58, Marco van de Voort wrote: > > In our previous episode, Tomas Hajny said: > >> 1) Find the first alphabetic character after the first line (which is > >> already processed/skipped by InstantFPC anyway) while

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Mattias Gaertner
On Sat, 5 May 2012 14:08:26 +0200 Jonas Maebe wrote: > > On 05 May 2012, at 14:02, Tomas Hajny wrote: > > > My proposal is platform independent (i.e. it will work also under Win32, > > OS/2, etc., without any changes). Your proposal probably requires starting > > the compiled binary using platf

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Sat, May 5, 2012 14:13, Mattias Gaertner wrote: > On Sat, 5 May 2012 14:02:12 +0200 (CEST) > "Tomas Hajny" wrote: >> On Sat, May 5, 2012 09:22, Michael Van Canneyt wrote: >> > On Fri, 4 May 2012, Mattias Gaertner wrote: >> >> On Fri, 04 May 2012 17:22:16 +0200 >> >> dhkblas...@zeelandnet.nl wro

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On Sat, May 5, 2012 14:08, Jonas Maebe wrote: > On 05 May 2012, at 14:02, Tomas Hajny wrote: > >> My proposal is platform independent (i.e. it will work also under Win32, >> OS/2, etc., without any changes). Your proposal probably requires >> starting >> the compiled binary using platform specific

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Tomas Hajny
On 5 May 12, at 14:20, Mattias Gaertner wrote: > On Sat, 5 May 2012 14:07:01 +0200 (CEST) > "Tomas Hajny" wrote: > > > On Fri, May 4, 2012 21:58, Marco van de Voort wrote: > > > In our previous episode, Tomas Hajny said: > > >> 1) Find the first alphabetic character after the first line (which is

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Jonas Maebe
On 05 May 2012, at 14:25, Mattias Gaertner wrote: > It uses only the file name, not the path to distinguish. > Having two scripts with the same name recompiles every time you > switch. This does mean that if a script is moved, the stored script location as seen by the compiled binary will not c

[fpc-pascal] ObjectBinaryToText - how to write only selected property?

2012-05-05 Thread Krzysztof
Hi, ObjectBinaryToText method can save object structure to string, but how save only some propertys? I could use RTTI and TypeInfo, but ObjectBinaryToText can parse property hierarchy (Propery1.Subproperty1.Color etc). Or how I can save and read object from string without object name? Example: I a