Author Topic: mencari jumlah kata ato huruf  (Read 328 times)

0 Members and 1 Guest are viewing this topic.

Offline triwahyudi245

  • Newbie
  • *
  • Posts: 41
mencari jumlah kata ato huruf
« on: January 14, 2017, 10:45:12 AM »
misal =snxxxxxsnxxlllsnsn hhhsn
pingin mencari karakter sn dan hasilnya 5 , perintahnya apa ya bro

Offline foxy

  • Fox-id M.V.P
  • Hero Member
  • *
  • Posts: 3.453
    • Foxy Land
Re: mencari jumlah kata ato huruf
« Reply #1 on: January 14, 2017, 12:30:30 PM »
kaya nya Anda harus bikin fungsi sendiri. Ada banyak cara; yang saya kepikir paling simple adalah menggunakan fungsi AT() dan SubStr(). Silahkan pelajari penggunaan dua fungsi itu, lalu coba bikin function nya sendiri.... Kalau ada yang mentok, silahkan post hasil usaha Anda dan jelaskan mentok nya dimana.

Good luck yaaa..
This post is provided as is. Feel free to use all the codes and information, however understand that I don't have any obligations to fix any bug(s) or follow up this subject.

Offline elfinshas

  • Newbie
  • *
  • Posts: 21
Re: mencari jumlah kata ato huruf
« Reply #2 on: January 16, 2017, 10:06:05 AM »
STORE 'snxxxxxsnxxlllsnsn hhhsn' TO gcstring

? OCCURS('sn', gcstring) 

Offline foxy

  • Fox-id M.V.P
  • Hero Member
  • *
  • Posts: 3.453
    • Foxy Land
Re: mencari jumlah kata ato huruf
« Reply #3 on: January 16, 2017, 05:14:30 PM »
 :icon_thumleft: :icon_thumleft: :icon_thumleft: :icon_thumleft: :icon_thumleft:


(baru perhatian dan baru tau ada fungsi OCCURS() di VFP. Thank you pak elfinhas  :icon_salut: :icon_biggrin: )
This post is provided as is. Feel free to use all the codes and information, however understand that I don't have any obligations to fix any bug(s) or follow up this subject.

Offline poison

  • Hero Member
  • *
  • Posts: 1.584
  • Poison 4 Women
Re: mencari jumlah kata ato huruf
« Reply #4 on: January 16, 2017, 08:23:04 PM »
STORE 'snxxxxxsnxxlllsnsn hhhsn' TO gcstring

? OCCURS('sn', gcstring)

 :icon_salut: :icon_salut: :icon_salut: :icon_salut: :icon_salut: :icon_thumleft: :icon_thumleft: :icon_thumleft: :icon_thumleft: :icon_thumleft:
think BIG to get BIG thing

Offline triwahyudi245

  • Newbie
  • *
  • Posts: 41
Re: mencari jumlah kata ato huruf
« Reply #5 on: January 18, 2017, 01:11:30 PM »
Mantaf om, makasih