Here is some code to terminate active windows application with visual foxpro :
oWMI = GETOBJECT(’winmgmts://’)
cQuery = “select * from win32_process where name=’calc.exe’”
oResult = oWMI.ExecQuery(cQuery)
? oResult.Count
FOR EACH oProcess IN oResult
? oProcess.Name
oProcess.Terminate(0)
NEXT
source
4 Comments »

We might think that address plaque is only an outdoor accessory that gives a sign to people about our home number. However, address plaque can have so many important functions. The simplest function is definitely helping our friend or relatives to find our home. Without an address plaque, they will not know the number of our home and the only solution is predicting or asking people around the area. Of course, it will be so complicated.

Besides giving easiness for our friend, address plaque can also be a life saver. For example, if the unfortunate thing happened to us and we need ambulance to take us to hospital, with address plaque, the driver will be able to find our home easily. Address plaques can also become a garden decoration. Today’s house address plaques are made into various models. We can find one that suits our home concept or one that can beautify our garden.
Since address signs have to face different weather temperatures and even extreme temperatures, we need to find one with high quality material and coat. Mailboxandbeyond.com is the best place to find finest address plaques. Juts visit on the website to see address plaque collection from well-known brands.
3 Comments »
Ada beberapa hal yang sebaiknya dilakukan dan tidak dilakukan dalam pemrograman Visual Foxpro.
- Jangan gunakan variable PUBLIC. Variabel public sulit dilAcak dan bukan design yang baik.
- Tidak menggunakan Formsets.
- Jangan sering (overload) Form.Refresh. Terlalu banayak form.refresh bisa memperlambat aplikasi
- Gunakan awalan (prefix) untuk jenis & obyek. Misalnya cName,nPrice
- Hindari SET FILTER karena bisa memperlambat kinerja aplikasi kecuali disaat Rushmore tidak dapat digunakan.
- Jangan lupa SETs anda. Ingat SETs anda saat BeforeOpenTables event pada DataEnvironment saat form menggunakan Private DataSession. Atau bisa juga SETs pada Form.Load()
- Setiap tabel harus memiliki Primary Key
- Hindari pengulangan penulisan code (code repition) yang sama
- Gunakan default Window Close button
- Jangan menggunakan garis bawah dalam penamaan variabel dan field
- Jika memungkinkan, ikuti Panduan Standar MS Windows Design
- Komentar. Tidak hanya komentar dalam code, tapi juga dalam properti dan metode dalam Form, class designer, tables & fields dalam table designer dan modul-modul dalam project manager. Anda akan mendapatkan bahwa komentar anda sangat membantu anda.
- Gunakan SEEK PADR(field_name,field_len) jika ingin melakukan pencarian secara exact match
- Gunakan local table jika memungkinkan
Selengkapnya bisa dibaca dari sini
3 Comments »