Topic: Create folder by script
Hello Dmitri
How to create by script (or behind button click) a new folder depending on the content of a Editbox ?
I explain :
A table to manage a discotheque.
A DBImage for covers (a folder Covers has been previously created).
With DBImage, we use Type = LinkFile and CopyTo = \Covers.
An EditBox to enter name of the performer
The purpose of this script is to create a new folder (inside folder \Covers) with the name of the performer entered
(i.e. In EditBox, we enter YOUNG Neil, so a new folder would be created in this form \Covers\Young).
I try this :
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
If Form1.EditBox1.Text = 'YOUNG' then
Form1.DBImage1.dbCopyTo := '\Covers\Young';
end; }
But nothing happens. Folder \Young is not created.
What's wrong with it.
Thanks for your help.
JB