On LoadDirectories(); should be dirs := TDirectory.GetFiles(EditPath.Text);
in procedure TForm12.LoadTgs(const LoadFirst: Boolean = True); add if ListBox1.ItemIndex=-1 then exit;
with
jsonFiles := TDirectory.GetFiles(TPath.Combine(EditPath.Text,
ListBox1.Items[ListBox1.ItemIndex]),'.json');
LottieFiles := TDirectory.GetFiles(TPath.Combine(EditPath.Text,
ListBox1.Items[ListBox1.ItemIndex]),'.lottie');
tgsFiles := TDirectory.GetFiles(TPath.Combine(EditPath.Text,
ListBox1.Items[ListBox1.ItemIndex]),'*.tgs');
I get file does not exist on LoadTgs
D10.2.3
On LoadDirectories(); should be dirs := TDirectory.GetFiles(EditPath.Text);
in procedure TForm12.LoadTgs(const LoadFirst: Boolean = True); add if ListBox1.ItemIndex=-1 then exit;
with
jsonFiles := TDirectory.GetFiles(TPath.Combine(EditPath.Text,
ListBox1.Items[ListBox1.ItemIndex]),'.json');
LottieFiles := TDirectory.GetFiles(TPath.Combine(EditPath.Text,
ListBox1.Items[ListBox1.ItemIndex]),'.lottie');
tgsFiles := TDirectory.GetFiles(TPath.Combine(EditPath.Text,
ListBox1.Items[ListBox1.ItemIndex]),'*.tgs');
I get file does not exist on LoadTgs
D10.2.3