I have a program that uses a file called VE3CRM.dat... I would like the user to be able to make a new file called..
Some other name. My Procedure is this code.
How can I code a choice for the user to enter a new file name in a popup box or something.
Thanks![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)
Bob
Some other name. My Procedure is this code.
Code:
procedure TForm1.FormCreate(Sender: TObject);
begin
AssignFile(AddrFile, 'VE3CRM.DAT');
if FileExists('VE3CRM.DAT') then
begin
Reset(AddrFile);
if (FileSize(AddrFile) > 0) then
begin
Seek(AddrFile, 0);
ReadRec;
NewRec := False;
end;
end
else
begin
Rewrite(AddrFile);
NewRec := True;
end;
btnNew.Enabled := True;
btnInsert.Enabled := False;
btnUpdate.Caption := '&Update';
end;
How can I code a choice for the user to enter a new file name in a popup box or something.
Thanks
![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)
Bob