Enviornmental Variables in Delphi

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

 

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.




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

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

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.

G'day Vincent,

Name: ‘RemObjects SDK’

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

Delphi 7

Cheers,

John

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”

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.

Correction, the RO var is in System variables.

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.