Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 517 Bytes

PASCAL.md

File metadata and controls

36 lines (24 loc) · 517 Bytes

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'));

Working With Strings

Use the sysutils unit to enable some functions on strings:

uses sysutils;

Trim

Split

for str in 'foo:bar'.split(':') do
    begin
        writeln(str);
    end;