Skip to content

Instantly share code, notes, and snippets.

@ZzZombo
Created November 24, 2016 15:10
Show Gist options
  • Save ZzZombo/263b43ac18e02e81678c05e1295ce232 to your computer and use it in GitHub Desktop.
Save ZzZombo/263b43ac18e02e81678c05e1295ce232 to your computer and use it in GitHub Desktop.
interface
type MyFile=class
private
var FFilename:string;
procedure SetFilename(const S:string);
public
property Filename:string read FFilename write SetFilename;
end;
implementation
procedure Myfile.SetFilename(const S:string)
begin
//do something here.
FFilename=S; // save the new value.
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment