QrAddFn2
Материал из Фабиус wiki
Версия от 09:06, 23 марта 2016; Hisava (обсуждение | вклад) (Новая страница: «QrAddFn2 - это файл программы на языке Pascal ( QrAddFn2.pas ) = { TQREvIdHTTPGet } = type TQREvIdHTTPGet = class ( TQREvElementFunct…»)
QrAddFn2 - это файл программы на языке Pascal ( QrAddFn2.pas )
{ TQREvIdHTTPGet }
type
TQREvIdHTTPGet = class ( TQREvElementFunction )
public
function Calculate: TQREvResult; override;
end;
function TQREvIdHTTPGet.Calculate: TQREvResult;
var
IdHTTP1: TIdHTTP;
res: string;
begin
try
IdHTTP1 := TIdHTTP.Create();
res := IdHTTP1.Get( 'http://' + Argument( 0 ).strResult );
Result.StrResult := res;
Result.Kind := ResString;
finally
FreeAndNil( IdHTTP1 );
end
end;