Files should start with:
{$mode objfpc}{$interfaces corba}{$H+}{$M+}{$J-}You can get an environment variable using the getEnv() function. You will need to use dos for this function to be available:
uses dos;
writeln(getEnv('FOO'));Use the sysutils unit to enable some functions on strings:
uses sysutils;for str in 'foo:bar'.split(':') do
begin
writeln(str);
end;