Silahkan Pilih Warna Yang Anda Sukai Untuk Kenyamanan Mata Anda

Ganti Warna Teks Yg Sesuai

Jumat, 03 Mei 2013

Membuat Data Base Dengan RTF


    Bicara tentang Data Base, saya yakin semua orang tahu, Tapi kalau tentang Jenisnya, mungkin tidak semua orang tahu banyak. Data Base Yang paling umum diketahui adalah : Access, dBASE III, dBASE IV dBASE 5, Excel, FoxPro, Lotus, SQL, Paradox. Dll.

Dari banyaknya Sistim pengolah data tersebut, yang paling mudah dibuat adalah Data Base Jenis Txt, Karena DB jenis ini tidak membutuhkan sistim software pendukung lain yang harus terinstall di dalam komputer. Dan database macam ini, akan sangat cocok untuk keperluan pembuatan kamus.

Ok, Kita langsung saja. Buatlah Project VB60 baru, Pada form1 masukkan kotak Text1, Text2 dan control RichTextBox1.

Letakkan kode dibawah ini pada keypressnya text1.

If KeyAscii = 13 Then
Dim teks As String, ygdcr As String
teks = Replace(text1, " ", "") ' Opsional
RichTextBox1.SelStart = 0
ygdcr = RichTextBox1.Find(teks, , , rtfWholeWord)
RichTextBox1.Span ";", False, True
End If

Dan Kode dibawah ini diletakan pada RichTextBox1. (SelChange) atau bisa
juga pada command1 (command button).

If RichTextBox1.SelText <> "" Then
text2.Text = RichTextBox1.SelText
End If

Pada Bentuk Data Base Text seperti ini, semua kata yang ada didalam RTF
dapat dicari sampai pada batas yang membatasi pencarian, dalam hal ini
batasnya adalah titik koma " ; ", dengan mengabaikan tanda2 lain. Dan
anda pun dapat menentukan sendiri tanda yang akan digunakan sebagai
pembatas seperti :
RichTextBox1.Span "-", False, True
berarti pencarian kata sampai pada tanda - dsb.


Ok selamat mencoba.



9 komentar:

  1. Thanks for sharing your info. I really appreciate your
    efforts and I will be waiting for your further write ups
    thank you once again.

    my weblog; reportajes de boda

    BalasHapus
  2. An intriguing discussion is definitely worth comment. I
    do believe that you should write more on this subject, it
    might not be a taboo matter but generally people don't discuss such topics. To the next! Best wishes!!

    Feel free to surf to my homepage: galaxy siv

    BalasHapus
  3. I am linking this webpage from my private blog
    . this has all of the usefull info necessary.


    my page ... having trouble getting pregnant at 40

    BalasHapus
  4. Hello very nice site!! Guy .. Beautiful .. Wonderful .
    . I'll bookmark your web site and take the feeds additionally? I'm satisfied to search out
    numerous helpful info here within the submit, we'd like work out extra techniques in this regard, thank you for sharing. . . . . .

    Also visit my site; Garcinia Cambogia

    BalasHapus
  5. I am now not sure the place you are getting your information, however good topic.
    I needs to spend a while learning much more or figuring out more.
    Thanks for excellent info I was searching for this information for
    my mission.

    Visit my website: how to take garcinia cambogia 1300

    BalasHapus
  6. Greetings from Colorado! I'm bored to death at work so I decided to check out your site on my iphone during lunch break. I enjoy the information you provide here and can't wait to take a look when I get home.
    I'm amazed at how fast your blog loaded on my cell phone .. I'm not even using WIFI, just 3G ..
    Anyhow, amazing blog!

    Look at my site; how to get pregnant now

    BalasHapus

  7. GHT services is best SEO company in Toronto. US&CA Best digital marketing company
    which is clutch verified.

    GHT Green Hat Tech is best cyber security news website which provide you
    Embassy Details if you are looking for any details about the embassies around the world.
    Toronto Local Business


    Best Taxi Service is best Airport Transfer service company in Germany. If you are
    coming to Frankfurt for business or personal trip and you need a private service then this will be best option available for you.

    BalasHapus

Komentar anda tidak langsung dapat muncul, menunggu moderasi