小工具整理
This commit is contained in:
commit
1011eb44e1
566 files changed
+267142
No files matched your search
@@ -0,0 +1,21 @@
|
||||
procedure DoSomething(var Parameter: WideString);
|
||||
begin
|
||||
// Do something here with Parameter.
|
||||
// Original passed variable will be changed,
|
||||
// because Parameter has been passed as a Var.
|
||||
end;
|
||||
|
||||
function DoAnother(Parameter: WideString): WideString;
|
||||
begin
|
||||
// Do something here with Parameter,
|
||||
// and return Result as a string.
|
||||
Result := '';
|
||||
end;
|
||||
|
||||
var
|
||||
S: WideString;
|
||||
|
||||
begin
|
||||
DoSomething(S);
|
||||
FileName := DoAnother(S);
|
||||
end.
|
||||
Reference in new issue
Block a user