Welcome
Welcome to <strong>STEKOM Semarang</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

VFP Compression

Membahas semua masalah pemrograman Visual Foxpro.

Moderator: djoko

VFP Compression

Postby nsoftsmg on Fri May 09, 2008 10:13 am

Biasanya diperlukan Backup data pada database kita agar data terakhir selalu terselamatkan. Banyak cara untuk melakukam proses backup ini. Biasanya dengan bantuan WINZIP atau WINRAR.

Nah Sekarang bagaimana caranya agar kita dapat membackup data kita tanpa menjalankan WINZIP dari luar ? tetapi langsung dengan coding tapi hasilnya langsung bisa jadi ZIP.

berikut adalah linknya !

http://www.sweetpotatosoftware.com/SPSB ... ession.zip

Sample cara makainya :

*!* Example 1
SET LIBRARY TO LOCFILE("vfpcompression.fll")
?ZipFileQuick("C:\MyFile.txt")
SET LIBRARY TO

*!* Example 2
SET LIBRARY TO LOCFILE("vfpcompression.fll")
?ZipFolderQuick("C:\MyFolder")
SET LIBRARY TO

*!* Example 3
SET LIBRARY TO LOCFILE("vfpcompression.fll")
?UnzipQuick("C:\MyFile.zip", "C:\")
?UnzipQuick("C:\MyFolder.zip", "C:\")
SET LIBRARY TO

*!* Example 4
SET LIBRARY TO LOCFILE("vfpcompression.fll")
?ZipOpen("C:\MyZipFile.zip", "C:\", .F.)
?ZipFile("C:\SomeFile.txt", .F.)
?ZipClose()
SET LIBRARY TO

*!* Example 5
SET LIBRARY TO LOCFILE("vfpcompression.fll")
?UnzipQuick("C:\MyZipFile.zip","C:\",.F.)
SET LIBRARY TO

*!* Example 6
SET LIBRARY TO LOCFILE("vfpcompression.fll")
?ZipOpen("C:\MyZipFile.zip", "C:\", .F.)
?ZipFolder("C:\MyFolder", .F.)
?ZipClose()
SET LIBRARY TO

*!* Example 7
SET LIBRARY TO LOCFILE("vfpcompression.fll")
CLEAR
lcOriginal = REPLICATE("Visual FoxPro Rocks!",100)
?"Original Length: " + TRANSFORM(LEN(lcOriginal))
?
lcCompressed = ZipString(lcOriginal)
?"Compressed: " + lcCompressed
?"Compressed Length: " + TRANSFORM(LEN(lcCompressed))
?
?"Length Savings: " + TRANSFORM(LEN(lcOriginal) - LEN(lcCompressed)) + " bytes"
?
lcUncompressed = UnzipString(lcCompressed)
*!* ?"Uncompressed: " + lcUncompressed
?"Uncompressed Length: " + TRANSFORM(LEN(lcUncompressed))
?"Equals Original: " + IIF(lcUncompressed == lcOriginal, "YES", "NO")
IF !(lcUncompressed == lcOriginal)
EXIT
ENDIF
SET LIBRARY TO


Selamat Mencoba...
nsoftsmg
Processor 8088
 
Posts: 2
Joined: Thu Nov 22, 2007 10:05 am
Location: Semarang

Postby java on Mon May 12, 2008 8:08 am

Halo bung,,,, ditunggu2 baru nongol sekarang...
Met gabung aja :D
Image

<a href="http://www.000webhost.com/51451.html" target="_blank"><img src="http://www.000webhost.com/images/banners/120x60/banner1.gif" alt="Free Web Hosting with Website Builder" width="120" height="60" border="0"></a>
Dapatkan webhosting GRATIS !!! dengan fitur :
*** 350 MB of disk space
*** 100 GB of data transfer
*** PHP and MySQL support with no restrictions
*** cPanel control panel
*** Website Builder, Joomla support
*** Absolutely no advertising! ( TANPA IKLAN )

Segera dapatkan webhost GRATIS di : http://www.000webhost.com/51451.html


Image
Ingin punya account RAPIDSHARE atau MEGAUPLOAD premium GRATIS silahkan kunjungi
http://www.freepremiumaccounts.com/?r=149862
Baca petunjuk disitu untuk lebih jelasnya.
User avatar
java
Pentium Celeron D
 
Posts: 121
Joined: Mon Nov 26, 2007 4:59 pm

Postby nsoftsmg on Thu May 15, 2008 1:55 pm

Gimana nih bos...

Forum kita sepi juga yah... apa mungkin situs kita ini belum di geber di kampus..... harus sering sering nih bos.... saran saya sih agar forum kita nggak sepi :

1. Suruh tiap mahasiswa membuat pertanyaan sekitar matakuliah (misal VFP) selain lewat bangku kuliah bisa lewat web ini.
2. Suruh mahasiswa cari beberapa modul matkul tertentu via web stekom

Cos mahasiswa stekom mungkin jarang ke web stekom....
nsoftsmg
Processor 8088
 
Posts: 2
Joined: Thu Nov 22, 2007 10:05 am
Location: Semarang

Postby java on Fri May 16, 2008 8:23 pm

Tks. tipsnya ya. Sebagian udah coba... ;)

Rekan2 yang mo tanya tentang VF bisa langsung ke rekan kita ini, abis dia pakar bgt ma VF ...
Image

<a href="http://www.000webhost.com/51451.html" target="_blank"><img src="http://www.000webhost.com/images/banners/120x60/banner1.gif" alt="Free Web Hosting with Website Builder" width="120" height="60" border="0"></a>
Dapatkan webhosting GRATIS !!! dengan fitur :
*** 350 MB of disk space
*** 100 GB of data transfer
*** PHP and MySQL support with no restrictions
*** cPanel control panel
*** Website Builder, Joomla support
*** Absolutely no advertising! ( TANPA IKLAN )

Segera dapatkan webhost GRATIS di : http://www.000webhost.com/51451.html


Image
Ingin punya account RAPIDSHARE atau MEGAUPLOAD premium GRATIS silahkan kunjungi
http://www.freepremiumaccounts.com/?r=149862
Baca petunjuk disitu untuk lebih jelasnya.
User avatar
java
Pentium Celeron D
 
Posts: 121
Joined: Mon Nov 26, 2007 4:59 pm


Return to Visual Foxpro

Who is online

Users browsing this forum: No registered users and 0 guests