Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-30 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 11:49 PM, waldo kitty wrote: > On 3/29/2012 21:26, Marcos Douglas wrote: >> >> Thanks for the test. >> We have a little difference: my FPC is 2.6.1 (svn /fixes_2_6). >> The env variable was added before I start the application, always. > > > and this is from command line (c

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-30 Thread Marcos Douglas
On Fri, Mar 30, 2012 at 5:43 AM, Bart wrote: > On 3/29/12, Marcos Douglas wrote: > >> The application is installed and the system variable is created. > > How exactly is this done? I'm not responsible for this part but I'm sure that works. Marcos Douglas

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-30 Thread Bart
On 3/29/12, Marcos Douglas wrote: > The application is installed and the system variable is created. How exactly is this done? Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread waldo kitty
On 3/29/2012 21:26, Marcos Douglas wrote: Thanks for the test. We have a little difference: my FPC is 2.6.1 (svn /fixes_2_6). The env variable was added before I start the application, always. and this is from command line (cmd.exe, command.exe or *shell) ?? or in the user or system environmen

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 9:41 PM, Chad Berchek wrote: > > Works fine for me on Windows 7. Here's the Windows version details: > > Windows 7 Pro, 64-bit, with Service Pack 1. The "ver" command shows > 6.1.7601. > > I tested 3 cases: > 1. Setting the environment variable using the "set" command in a

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Chad Berchek
Works fine for me on Windows 7. Here's the Windows version details: Windows 7 Pro, 64-bit, with Service Pack 1. The "ver" command shows 6.1.7601. I tested 3 cases: 1. Setting the environment variable using the "set" command in a command line prompt then immediately running the test program. 2

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:45 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: >> >> On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd >> wrote: >>> >>> Marcos Douglas wrote: >>> I know that I have to define the environment variable before or after starting the application or IDE. >

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:32 AM, Sven Barth wrote: > Am 29.03.2012 13:29, schrieb Marcos Douglas: > >> On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth >>  wrote: >>> >>> Am 29.03.2012 13:06, schrieb Marcos Douglas: >>> The application is installed and the system variable is created. The appl

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mark Morgan Lloyd
Marcos Douglas wrote: On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd wrote: Marcos Douglas wrote: I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a client using Win7 so, I t

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:17 AM, wrote: > > > On Thu, 29 Mar 2012, Marcos Douglas wrote: > >> On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd >> wrote: >>> >>> Marcos Douglas wrote: >>> I know that I have to define the environment variable before or after starting the application or

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 13:29, schrieb Marcos Douglas: On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth wrote: Am 29.03.2012 13:06, schrieb Marcos Douglas: The application is installed and the system variable is created. The application and others process should be use this variable just calling SysUtils.Ge

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:16 AM, Mattias Gaertner wrote: > > Marcos Douglas hat am 29. März 2012 um 13:06 geschrieben: > >>[...]> > === output end === >> > >> > Please note that in "cmd" the following are different: >> > >> > set FOO=bar >> >  => "FOO" -> "bar" >> > set FOO = bar >> >  => "FOO "

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 8:13 AM, Sven Barth wrote: > Am 29.03.2012 13:06, schrieb Marcos Douglas: > >> The application is installed and the system variable is created. The >> application and others process should be use this variable just >> calling SysUtils.GetEnvironmentVariable. > > > Then let

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 13:16, schrieb Mattias Gaertner: Marcos Douglas hat am 29. März 2012 um 13:06 geschrieben: >[...]> > === output end === > > > > Please note that in "cmd" the following are different: > > > > set FOO=bar > > => "FOO" -> "bar" > > set FOO = bar > > => "FOO " -> " bar" > >

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread michael . vancanneyt
On Thu, 29 Mar 2012, Marcos Douglas wrote: On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd wrote: Marcos Douglas wrote: I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a c

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mattias Gaertner
Marcos Douglas hat am 29. März 2012 um 13:06 geschrieben: >[...]> > === output end === > > > > Please note that in "cmd" the following are different: > > > > set FOO=bar > > => "FOO" -> "bar" > > set FOO = bar > > => "FOO " -> " bar" > > set FOO= bar > > => "FOO" -> " bar" > > set FOO =bar >

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 13:06, schrieb Marcos Douglas: The application is installed and the system variable is created. The application and others process should be use this variable just calling SysUtils.GetEnvironmentVariable. Then let a FPC program print all passed environment variables as a test: ==

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 5:42 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: > >> I know that I have to define the environment variable before or after >> starting the application or IDE. >> As I said, works in WinXP... but I had a little problem with a client >> using Win7 so, I talked about

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Marcos Douglas
On Thu, Mar 29, 2012 at 4:17 AM, Sven Barth wrote: > > Am 29.03.2012 05:31, schrieb Marcos Douglas: > >> On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt >>  wrote: >>> >>> >>> >>> >>> On Wed, 28 Mar 2012, Marcos Douglas wrote: >>> Hi, I think SysUtils.GetEnvironmentVariable ha

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mark Morgan Lloyd
Marcos Douglas wrote: I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a client using Win7 so, I talked about this on lazarus-br list and asked to somebody do the test on Win7 and t

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Sven Barth
Am 29.03.2012 05:31, schrieb Marcos Douglas: On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt wrote: On Wed, 28 Mar 2012, Marcos Douglas wrote: Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-28 Thread Marcos Douglas
On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt wrote: > > > > On Wed, 28 Mar 2012, Marcos Douglas wrote: > >> Hi, >> >> I think SysUtils.GetEnvironmentVariable has a problem. >> I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes >> works on WinXP, others not. But never worked

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-28 Thread Michael Van Canneyt
On Wed, 28 Mar 2012, Marcos Douglas wrote: Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP, others not. But never worked on Win7. I asked some friends to test on Linux and did not work too. My FPC i