Context 1
var text:String; text:=\'hello\'; myFunc(text);
Context2
function myFunc(mytext:String); var textcopy:String; b
In Delphi to pass by reference you explicitly add the var keyword:
procedure myFunc(var mytext:String);
This means that myFunc can modify the contents of the string and have the caller see the changes.