[s]
function GetRAM: String;
var
memory: TMemoryStatus;
memoryAmount: Double;
begin
memory.dwLength := SizeOf(memory);
GlobalMemoryStatus(memory);
{ calculate RAM to the nearest MB }
memoryAmount := RoundTo(memory.dwTotalPhys / 1048576, -2);
Result := FloatToStr(memoryAmount) + 'MB';
end;
[/s]