[Gambas-user] Compress

Benoit Minisini gambas at ...1...
Sun Aug 27 19:13:43 CEST 2006


On Sunday 27 August 2006 19:06, Jacky wrote:
> Hello,
> Finally i have found that is necessary to put one tempo before compress big
> file.
>
> <My code>
> DIM Compres AS NEW Compress
> Compres.Type = "zlib"
> IF Exist(User.home & "/test.sql") THEN KILL User.home & "/test.sql"
> SHELL "mysqldump" & " " & "-u" & " " & Fmenu.hcon.Login & " " & "-p" &
> Fmenu.hcon.Password & " " & "test" & " " & "--add-drop-table" & " " & ">" &
> " " & User.home & "/test.sql"

If you don't add the WAIT keyword (dev version) after SHELL, then Gambas won't 
wait for the end of the command before going to the next line of code. See 
the documentation.

> WAIT 3
> Compres.File ( system.home & "/test.sql" , system.Home & "/test.sql.gz" ,
> Compres.Max)
> <end my code>
>
> Jack
>

Regards,

-- 
Benoit Minisini





More information about the User mailing list