Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Sven Barth
Am 02.08.2013 13:32, schrieb Michael Schnell: On 08/02/2013 01:15 PM, Sven Barth wrote: Application.ExeName is a rather abstract functionality (in the end it just works with ParamStr(0) anyway...). Grrr. I meant it might be property that calls an abstract function to force siblings to implement

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell
On 08/02/2013 01:15 PM, Sven Barth wrote: Application.ExeName is a rather abstract functionality (in the end it just works with ParamStr(0) anyway...). Grrr. I meant it might be property that calls an abstract function to force siblings to implement it. (TCustom... classes are often done like

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Sven Barth
Am 02.08.2013 12:07, schrieb Michael Schnell: Will that automatically provide the correct string as MyApplication.ExeName ? Yes. Great. I thought TCustomApplication would be rather abstract. Application.ExeName is a rather abstract functionality (in the end it just works with ParamStr(0) an

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell
On 08/02/2013 11:57 AM, Michael Van Canneyt wrote: So you suggest deriving and instantiating a propriety application from the TCustomApplication class ? I don't suggest anything. I just react on incorrect information. I see. Thanks for the clarification . Will that automatically provide the

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Van Canneyt
On Fri, 2 Aug 2013, Michael Schnell wrote: On 08/02/2013 11:07 AM, Michael Van Canneyt wrote: Widget types do not even enter the picture, customapplication is included in FPC, not Lazarus. I see. Thanks. So you suggest deriving and instantiating a propriety application from the TCustomA

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell
On 08/02/2013 11:07 AM, Michael Van Canneyt wrote: Widget types do not even enter the picture, customapplication is included in FPC, not Lazarus. I see. Thanks. So you suggest deriving and instantiating a propriety application from the TCustomApplication class ? Will that automatically pr

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Henry Vermaak
On Fri, Aug 02, 2013 at 10:58:02AM +0200, Michael Schnell wrote: > On 08/02/2013 10:32 AM, Michael Van Canneyt wrote: > >On Fri, 2 Aug 2013, Michael Schnell wrote: > >>On 08/01/2013 08:56 PM, Richard Mace wrote: > >>"Application" is only available when using appropriate > >>"WidgetTypes". Not when

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Van Canneyt
On Fri, 2 Aug 2013, Michael Schnell wrote: On 08/02/2013 10:32 AM, Michael Van Canneyt wrote: On Fri, 2 Aug 2013, Michael Schnell wrote: On 08/01/2013 08:56 PM, Richard Mace wrote: "Application" is only available when using appropriate "WidgetTypes". Not when doing simple command line tools

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell
On 08/02/2013 10:32 AM, Michael Van Canneyt wrote: On Fri, 2 Aug 2013, Michael Schnell wrote: On 08/01/2013 08:56 PM, Richard Mace wrote: "Application" is only available when using appropriate "WidgetTypes". Not when doing simple command line tools. It is if you use TCustomApplication from cus

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Van Canneyt
On Fri, 2 Aug 2013, Michael Schnell wrote: On 08/01/2013 08:56 PM, Richard Mace wrote: How can I get the path of where my application is running from? I have tried Application.Name Application.ExeName but "Application" is not found? "Application" is only available when using appropri

Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell
On 08/01/2013 08:56 PM, Richard Mace wrote: How can I get the path of where my application is running from? I have tried Application.Name Application.ExeName but "Application" is not found? "Application" is only available when using appropriate "WidgetTypes". Not when doing simple command l

Re: [Lazarus] Path that .exe file is running from

2013-08-01 Thread Richard Mace
On 1 August 2013 20:09, Reinier Olislagers wrote: > On 01/08/2013 20:56, Richard Mace wrote: > > Hi, > > How can I get the path of where my application is running from? > > I have tried Application.Name but "Application" is not found? > > > e.g. paramstr(0) > > Note: getting the exe path is not gu

Re: [Lazarus] Path that .exe file is running from

2013-08-01 Thread Reinier Olislagers
On 01/08/2013 20:56, Richard Mace wrote: > Hi, > How can I get the path of where my application is running from? > I have tried Application.Name but "Application" is not found? > e.g. paramstr(0) Note: getting the exe path is not guaranteed to work on all platforms (e.g. OSX). Please see the docu

[Lazarus] Path that .exe file is running from

2013-08-01 Thread Richard Mace
Hi, How can I get the path of where my application is running from? I have tried Application.Name but "Application" is not found? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman