header image

Lapis Lazuli

Posted by: standy | April 4, 2011 | 2 Comments |

Lapis Lazuli

under: Uncategorized

Decimal Data Type in Visual Basic 6.0

Posted by: standy | September 8, 2010 | 5 Comments |

After I have tried to use decimal data type in visual basic 6 … I have found nothing …  So I tried to search help in http://msdn.microsoft.com. The result is :

If the client application uses Visual Basic 6.0 and includes the DECIMAL data type, the decimal value in Visual Basic must be defined as a Variant. If the client application uses Visual Basic .NET, the DECIMAL data type is defined directly.

The conclusion is That there is no Decimal data type in Visual Basic 6. The other option for us to cover decimal data type is using Variant data type. And of course, Variant data type will need more memory consumption. Because Variant data type covers all kind of data types, like integer, decimal, string, date, etc. To convert other data type into Decimal, we can use Cdec command. Example : Dim A as Variant, and then we assign A with a decimal value, A = Cdec(“123.45″winking, will result A = 123.45 (in decimal value).

In windows XP, we can use Double data type to cover decimal value (I don’t know Why ?, but it’s working). But in windows 7, there is a problem if we used Double data type. Because the decimal value in our application will be converted into non-fractional value (example : 0.3333 will be recognized as 0) … Of course, It will be a big problem if we want to calculate 1 / (1/3) … In normal situation, it will make result = 3 … but if 1/3 or 0.3333 is recognized as 0 … the operation will be like 1 / 0 … it will make an error  “divided by a zero”.

So … Be carefull in choosing your data type. OK ? … ^^

under: Computer Science

Do you need more money ? This web site gives you a solution how to get money easily … Just click this picture below … and get register … you will get $10 … and after you have been registered, you can refer your friends to join, and you can get $2 for every active friend or member. :)

under: Information

New extended Submission deadline

Submission deadline is now extended to May 31st, 2010

DFmA 2010 will be held in Yogyakarta, one of the most attractive cities and has been known as the historical center of Indonesia worldwide.

Read More…

under: Information

Seperti kita ketahui sekarang ini aplikasi untuk keperluan kriptografi Pretty Good Privacy (PGP) telah menjadi aplikasi yg tidak free alias trialware. Dan untuk bisa meng-encrypt ataupun decrypt email yg akan dikirim atau diterima diperlukan adanya “license number” untuk mengaktifkan fitur ini. Lalu apakah kita harus pasrah ? Jawabannya tentulah tidak !!!. Zaman sekarang sudah banyak berkembang aplikasi yg berbasis “Open Source”, salah satunya telah melahirkan GnuPG. GnuPG merupakan aplikasi untuk keperluan kriptografi yg bebas untuk digunakan dan di-distribusikan.

Lalu bagaimanakah cara menginstall-nya ? Walaupun tak semudah PGP, tapi cara instalasi GnuPG masih tergolong mudah.

1. Download aplikasi GnuPG dari ftp://ftp.gnupg.org/gcrypt/binary/gnupg-w32cli-1.4.9.exe

2. Klik ganda file executable hasil download dan akan muncul gambar tampilan berikut.

Lalu klik next untuk melakukan instalasi. Ikuti petunjuk yg ada sampai dengan selesainya.

Read More…

under: Computer Science

Older Posts »

Categories