首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

用DELPHI6开发的程序中 有1函数中有这么一个用法 SetLength(Result, 500); 这其中的 Result 是什么

2013-09-25 
用DELPHI6开发的程序中 有一函数中有这么一个用法 SetLength(Result, 500)这其中的 Result是什么 ?functi

用DELPHI6开发的程序中 有一函数中有这么一个用法 SetLength(Result, 500); 这其中的 Result 是什么 ?
function SelfPath: string;
begin
  SetLength(Result, 500);
  SetLength(Result, GetModuleFileName(HInstance, PChar(Result), 500));
  Result := ExtractFilePath(Result);
end;


这其中的 Result   是什么 ?
[解决办法]
function SelfPath: string;
Result就是返回值变量,类型就是String

热点排行