Sequence is a series of statements and execution sequence yangg sequence, so it is earlier in the reading will be done first. if the order of the statement will have the meanings behind different yangg
commutative operators such as addition and multiplication, the order of the process can be done anywhere, while non-commutative operator with properties such as subtraction, division, integer division, and the rest of the division of the process sequence must be noticed
examples of commutative program
final result in dev :
Monday, 25 July 2011
Sunday, 24 July 2011
how to determine prime number
this program will determine whether input is prime number or no, whats is prime number.
prime number is a natural number that has exactly two distinct natural number divisors: 1 and itself.
this is program how to determine prime number....
final result in dev :
prime number is a natural number that has exactly two distinct natural number divisors: 1 and itself.
this is program how to determine prime number....
final result in dev :
Bagaimana menemukan tahun kabisat dengan delphi
Dalam program ini akan membantu Anda menemukan tahun kabisat, sehingga Anda tidak harus menghitung secara manual, dengan kode sederhana di bawah ini Anda akan menemukan tahun kabisat atau tidak.
kita dapat membuat fungsi baru berdasarkan komponen Tdate
ok langsung saja kita buat program.
Kemudian masukkan kode di bawah ini untuk button
Source koding - leap year
kita dapat membuat fungsi baru berdasarkan komponen Tdate
ok langsung saja kita buat program.
Kemudian masukkan kode di bawah ini untuk button
Source koding - leap year
Selamat Mencoba, semoga ilmu yang saya share bermanfaat.
Good Luck
Good Luck
Saturday, 23 July 2011
Cara Menghitung Jumlah Karakter dengan delphi
Sekarang kita akan membuat program untuk Menghitung Jumlah Karakter, di sini kita dapat mengetahui berapa banyak karakter yang ada dalam surat-surat, tidak menghitung secara manual. kami baru saja mulai untuk memasukkan kode di bawah ini:
Fungsinya adalah sebagai berikut:
dalam program ini kita dapat menyaring letters caseSensitive.
Fungsinya adalah sebagai berikut:
dalam program ini kita dapat menyaring letters caseSensitive.
Cara menyimpan gambar kedalam database dengan delphi
Seringkali pertanyaan kita adalah bagaimana menyimpan gambar ke database. Cara yang digunakan adalah sama dengan prosedur standar ketika Anda ingin menyimpan data baru (insert, edit) on the field.
tipe data dari gambar blob pada table kita menggunakan Assign.
Untuk contoh kamu ingin menyimpan graphic yang ada di TImage (image1) kedalam field BLOB (di sini saya menunjukkan, nama field adalah sebuah pic):
Untuk menyimpan gambar ke dalam field adalah jenis / format gambar yang ingin Anda simpan, apakah JPEG / JPG, PNG, GIF atau BMP. Jika Anda ingin semua data pada field 'pic' hanyalah grafis tipe JPEG / JPG, maka Anda harus mengkonversi sebuah grafis yang ada di image1 untuk TJPEGImage kemudian disimpan ke lapangan. Hal ini akan memudahkan Anda ketika menampilkan grafis untuk TImage, karena grafis yang akan ditampilkan sudah pasti TJPEGImage, jadi tidak perlu untuk mendeteksi tipe gambar yang akan ditampilkan. Tapi semua tergantung pada orientasi dari program Anda buat.
tipe data dari gambar blob pada table kita menggunakan Assign.
Untuk contoh kamu ingin menyimpan graphic yang ada di TImage (image1) kedalam field BLOB (di sini saya menunjukkan, nama field adalah sebuah pic):
Untuk menyimpan gambar ke dalam field adalah jenis / format gambar yang ingin Anda simpan, apakah JPEG / JPG, PNG, GIF atau BMP. Jika Anda ingin semua data pada field 'pic' hanyalah grafis tipe JPEG / JPG, maka Anda harus mengkonversi sebuah grafis yang ada di image1 untuk TJPEGImage kemudian disimpan ke lapangan. Hal ini akan memudahkan Anda ketika menampilkan grafis untuk TImage, karena grafis yang akan ditampilkan sudah pasti TJPEGImage, jadi tidak perlu untuk mendeteksi tipe gambar yang akan ditampilkan. Tapi semua tergantung pada orientasi dari program Anda buat.
Selamat Mencoba, semoga ilmu yang saya share bermanfaat.
Good Luck
Good Luck
Friday, 22 July 2011
Mengecek letak file dengan delphi How to Check for File Existence delphi
Untuk memeriksa apakah file tersebut ada di direktori tertentu, Anda dapat menggunakan fungsi yang disediakan dalam Delphi.
Formula fungsi:
FileExists (const FileName: string): boolean.
Step 1: masukan koding didalam Edit Button and Form
Step two: enter the program with the program listings below :a
Jalankan Program
Formula fungsi:
FileExists (const FileName: string): boolean.
Step 1: masukan koding didalam Edit Button and Form
Step two: enter the program with the program listings below :a
Jalankan Program
Selamat Mencoba, semoga ilmu yang saya share bermanfaat.
Good Luck
Good Luck
Wednesday, 20 July 2011
Cara membuat form login dengan delphi
Tampilan bisa dibuat seperti gambar dibawah:
On public add koding dibawah:
Add koding dibawah implementation
On Click Button Login add koding dibawah:
How to change background color delphi
You can change the background color by adding the components:
And enter the code below
Good Luck
- ColorDialog
- button
And enter the code below
Good Luck
how to determine leap year
Leap year is a year containing one extra day (or, in the case of lunisolar calendars, a month) in order to keep the calendar year synchronized with the astronomical or seasonal year.Because seasons and astronomical events do not repeat in a whole number of days, a calendar that had the same number of days in each year would, over time, drift with respect to the event it was supposed to track. By occasionally inserting (or intercalating) an additional day or month into the year, the drift can be corrected. A year that is not a leap year is called a common year.
now i'm will make a program how to determine leap year, chek it out...
now i'm will make a program how to determine leap year, chek it out...
calculate the volume of the ball
formula for calculating volume of a sphere of volume sphere = 4/3.phi.r * r * r, phi can be 3.14 or 22 / 7 but here we use the 3.14 and the radius is specified by the user
The following example program check it out
final result like this
The following example program check it out
final result like this
Mengurutkan data dengan dbgrid delphi
mengkompile data penting untuk mempermudah pencarian data lagi. Berikut koding untuk menyortir data.
Mengurutkan data dengan ascending
Mengurutkan data dengan descending
Mengurutkan data dengan ascending
Mengurutkan data dengan descending
Bagaimana Filter Karakter di EditBox delphi
EditBox hanya bisa menerima input karakter tertentu. Sebagai contoh, agar EditBox hanya bisa diisi dengan angka, bukan karakter.
Program berikut menunjukkan bagaimana EditBox hanya bisa diisi dengan bilangan heksadesimal, percaya (0 .. 9), (A. F.), Atau (a. F.).
Program berikut menunjukkan bagaimana EditBox hanya bisa diisi dengan bilangan heksadesimal, percaya (0 .. 9), (A. F.), Atau (a. F.).
Tuesday, 19 July 2011
input and output part 2
how to make the program save the data already now we make a program that will display or read data from the file that we who first created the program last,…….
program reads data
program reads data
input and output part 1
we make every imaginable data program in the program we had in store in the computer memory either internal or external, so this time we make a program that can store data and programs which can dial / display of data we have more input in the first program, cekidot ……
programs that store data
programs that store data
try to make the program
do not have much to say right now we directly test the program, cekidot ....
It is the sum of the input program that we have direct input in the program (int a = 5, b = 10;)
It is the sum of the input program that we have direct input in the program (int a = 5, b = 10;)
calculate the area of a circle
below is a sample program to calculate the area of a circle:
formula to calculate the circle is L = pi * r * r, phi = 3.14 or 22 / 7 here we use the phi = 3.14 with the fingers of the user input
finish ,now you can calculate the area of a circle with this program
formula to calculate the circle is L = pi * r * r, phi = 3.14 or 22 / 7 here we use the phi = 3.14 with the fingers of the user input
finish ,now you can calculate the area of a circle with this program
cara mengakses database dengan MS Access delphi
Untuk mengakses database dengan MS access bisa mengikuti step by step dibawah:
Step 1 buka your Ms Access:
Step 2 Klik File > New > Blank database > Choose Storage
introduction dev
had not been informed Internet blog content again increased but without any increase in quality. but no problem was the late reply than none at all
the first thing we start from the beginning that is familiar with application programming there are 2 applications that I know that Borland and the dev, but the average "most people make dev maybe because it's easier
now we see how rich display dev
for example, we want to start the program how to click a file>> new>> project>> select console Application>> ok
the first thing we start from the beginning that is familiar with application programming there are 2 applications that I know that Borland and the dev, but the average "most people make dev maybe because it's easier
now we see how rich display dev
for example, we want to start the program how to click a file>> new>> project>> select console Application>> ok
Subscribe to:
Posts (Atom)