Recent

Author Topic: TZipper query  (Read 423 times)

AMJF

  • New Member
  • *
  • Posts: 48
TZipper query
« on: May 27, 2022, 06:20:39 am »
In my program, I'm using TZipper to generate zip files with contents I add to the files.

When I first used it, I simply adapted example code, but I notice that TZipper needs a declaration of the filename when initialised, like this example in my program:

Code: Pascal  [Select][+][-]
  1. ZIPFIL.FileName:=TPATH+'\Test.zip';
  2.  

But then later on, when it comes to saving the TZipper file, this line is used:

Code: Pascal  [Select][+][-]
  1. ZIPFIL.SaveToFile(TPATH+'\Test.zip');
  2.  

If the filename is stated in .SaveToFile, does it really need to be also stated in .FileName too? Or can I omit the .FileName?

GAN

  • Sr. Member
  • ****
  • Posts: 370
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

 

TinyPortal © 2005-2018