# Enviornmental Variables in Delphi

**URL:** https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037
**Category:** Discussion
**Created:** [November 18, 2008, 3:28am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037 "2008-11-18T03:28:47Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 18, 2008, 3:28am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/1 "2008-11-18T03:28:47Z")

</div>

In Delphi, enviornmental variables are allowed to have spaces. In FB, this is a no-no--at least in FB 5.5x.

This causes problems with default installs of at least one popular tool (RemObjects). Sure, I wish they didn't use the space, but I also wish FB would be a bit mroe flexible. (And I'm tired. I am at the end of rebuilding the development server, which has taken 2 days, and when I think I've finished, there's one or two more things left).

Is there any chance of this being included in a future FB version--or does v 6 already support it?

Thanks

Ed Dressel

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 18, 2008, 11:52am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/2 "2008-11-18T11:52:42Z")

</div>

Hi Ed   
  
 Which build of FB5.5 are you using. I just did a quick test with FB5.5.0.707 and FB6 and I was able to use a D2007 environment variable (I created on called “test space” with a value of “c:\test space” and used it in a message box action to check the value). It worked as expected.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 12, 2009, 10:59am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/3 "2009-01-12T10:59:05Z")

</div>

FB 6.2 is returning 'Variable name must not contain spaces'.

I'm having the same trouble with 'RemObjects SDK' as posted...

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 12, 2009, 11:22am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/4 "2009-01-12T11:22:24Z")

</div>

Hi John   
  
 What is the delphi environment variable called and what is it’s value… that way I can test it here. My tests so far have not been able to reproduce the problem with FB5.5 or 6.2.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 12, 2009, 11:26am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/5 "2009-01-12T11:26:06Z")

</div>

G'day Vincent,

Name: ‘RemObjects SDK’

Value: ‘C:\Program Files\RemObjects Software\RemObjects SDK for Delphi’

Delphi 7

Cheers,

John

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 13, 2009, 12:32pm UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/6 "2009-01-13T12:32:37Z")

</div>

Hi John   
  
 That works for me. Where are you seeing this error message? Are you manually adding the variable? To have those delphi environment variables appear in FinalBuilder, you need to turn the option on under Tools\Options - Compilers - Borland Delphi - “Use BDS 2007 Environment variables at startup”

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 13, 2009, 12:50pm UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/7 "2009-01-13T12:50:23Z")

</div>

Weird stuff. I still can’t add a user var with spaces in the name, but the RO var is now in the environment list and the project builds.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 13, 2009, 12:58pm UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/8 "2009-01-13T12:58:18Z")

</div>

Correction, the RO var is in System variables.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 13, 2009, 1:13am UTC](https://www.finalbuilder.com/forums/t/enviornmental-variables-in-delphi/1037/9 "2009-01-13T01:13:17Z")

</div>

Hi John   
  
 Not being able to add variables with spaces in them is intentional on our part. The delphi environment variables are added as FB system variables as they are not really environment variables.
