Реферат: Разработка программы психотестирования
begin
if savedialog1.execute then begin
assignfile(f,savedialog1.filename);
rewrite(f);
for i:=1 to varnum-1 do write(f,res[i]);
closefile(f)
end
end;
procedure TfrmMain.Button2Click(Sender: TObject);
var f:file of tresult;
begin
if opendialog1.execute then begin
assignfile(f,opendialog1.filename);
reset(f);
varnum:=1;
while not eof(f) do begin
read(f,res[varnum]);
inc(varnum)
end;
memo1.text:=res[1].text;
spinedit1.value:=res[1].min;
spinedit2.value:=res[1].max;
spinedit3.value:=1;
closefile(f)
end
end;
procedure TfrmMain.SpinEdit1Change(Sender: TObject);
begin
if no then exit;