home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
Chip_2000-02_cd.bin
/
zkuste
/
Delphi
/
navody
/
tt
/
objvm.exe
/
SAMPLE
/
LangFileUtils.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-05-31
|
919b
|
47 lines
unit LangFileUtils;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
LangValue, VisualValue, LangProc;
type
TFileUtils = class(TDataModule)
ExecProc: TLangProc;
procedure ExecProcExec(Sender: TVisualValue; S: IValStack;
MustReturn: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FileUtils: TFileUtils;
implementation
uses uRunTime,VarLangValue,RxShell;
{$R *.DFM}
procedure TFileUtils.ExecProcExec(Sender: TVisualValue; S: IValStack;
MustReturn: Boolean);
Var v:TVarLangValue;
begin
FileExecute(s.FrameValues[0].AsString,
s.FrameValues[1].AsString,s.FrameValues[2].AsString,
esNormal);
s.DropFrame;
if MustReturn then
begin
v:=TVarLangValue.Create(nil);
v.AsBoolean:=True;
s.Push(v);
end;
end;
end.