Dart Home | PowerTCP Zip Compression for Active | Custom Development | Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
Author | Forum: PowerTCP Zip Compression for ActiveX Topic: How to prevent that filestore remove event deletes zip file |
User127 From: Venray, Netherlands Posts: 30 Member Since: 04/10/02 |
posted August 11, 2004 6:25 AM Have the following code in Powerbuilder: ole_zip.object.BackgroundOperation = 0 ole_zip.object.FileStore.Clear() ole_zip.object.FileStore.Load(NaamBackup) i = 1 DO WHILE i <= ole_zip.object.FileStore.Count FileName = upper(string(ole_zip.object.filestore(i).name)) IF right(Filename, 9) <> 'FARM05.DB' THEN ole_zip.object.FileStore.remove(i) ELSE i++ END IF LOOP ole_zip.object.FileStore.Unzip(DirRestore, FALSE, FALSE) If I use the loop where the files are removed (only 1 files should be restored) then after unzipping the zip file is deleted. How can I prevent this? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 11, 2004 9:06 AM I am having trouble understanding this description. Please send a sample PB (6.5, 7 or 8) project that demonstrates the problem. Make sure the project is as simple as possible. Ideally it would have one button that calls the code you posted. Make sure you include a zip file that has the FARM05.DB file in it as well. Zip everything up and send it to support@dart.com Thanks |
Reply | PowerTCP Zip Compression for ActiveX Topics | Forums |
This site is powered by
![]() |