Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Guesuper Guesuper is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 408
Rep Power: 15
Guesuper mempunyai hidup yang Normal
Default [HELP] Kode otomatis Delphi 7

Pagi sebelumnya..



buat agan2 para master programer saya minta bantuan, saya lagi ada tugas buat program di delphi 7, tentang surat jaminan kesehatan.

saya lagi bingung untuk membuat kode otomatis (jadi generate otomatis) buat primary key nanti di data base y, itu cara y gmn y?? saya udah cari sana-sini g ada bsa terus..



ini contoh yang saya buat,,

<div style="margin:20px; margin-top:5px">
Spoiler for contoh program:


<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
procedure createCode(var sKode: string);

var

i, iNoUrut : integer;

sTgl,sBlnThn,sUrut:string;

begin

sBlnThn:='';

sUrut:='';

ShortDateFormat:='mmyy';

sTgl:=DateToStr(date);

for i:=3 to 6 do

sBlnThn:=sBlnThn+sKode[i];

for i:=7 to 10 do

sUrut:=sUrut+sKode[i];

if sTgl=sBlnThn then

begin

iNoUrut:=StrToInt(sUrut)+1;

sUrut:=IntToStr(iNoUrut);

if iNoUrut
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Terkait
Thread Thread Starter Forum Replies Last Post
JUAL PAYUNG OTOMATIS ukuran MINI (otomatis buka, otomatis tutup) grosir dan eceran Housecantik Household appliances 0 10th October 2012 11:25 PM
otomatis pompa air / otomatis tandon air / otomatis toren air tokohardware Alat Berat 0 31st August 2012 05:14 PM
[ASK DELPHI] cara bikin report di delphi PHPmaster Programming 0 20th November 2011 10:28 AM
[Delphi 7]hitung otomatis dari 2 textfield Guesuper Programming 0 20th November 2011 12:41 AM
[Delphi 7]hitung otomatis dari 2 textfield Braincode Programming 0 11th November 2011 02:11 PM

 


All times are GMT +7. The time now is 12:10 PM.