Proyecto

General

Perfil

Descargar (905 Bytes) Estadísticas
| Rama: | Revisión:
unit global;

{$mode objfpc}{$H+}

interface

uses
unix,Classes, SysUtils;
var
g_tiempoempleado:integer;
g_usuario,g_dirpersonal:string;
g_codigo,g_tipoc:string;
g_num_opciones,g_tiempoc:integer;
g_pregunta:string;
g_opciones:array of string;
g_tiempo:integer;
g_ip_administrador:string;
g_mihost:string;
Function HallarDato(Cmd:string):string;
implementation
function HallarDato(Cmd:string):String;
var
file1: TextFile;
s,t: ansistring;
n: longint;
j:integer;
begin
j:=0;
n:=popen(file1, Cmd, 'r');
if n=-1 then
begin
result:='';
Exit;
end;
t:='';
while not eof(file1) do begin
Readln(File1,s);
t:=t+s+Chr(10);
inc(j);
end;
pclose(file1);
result := trim(t);
end;
end.


(5-5/11)