Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Thursday, July 14, 2011

VFP Tricks: Adding Graphs and Charts into FoxPro Application

VFP Tricks: Add Graphs or Charts into FoxPro Application
Somehow any charts/graphs in an application would make a big difference for a user-friendly visual application. Also, sometimes it's very important to includes charts or graph in our applications.

Here an easy way for creating charts and graphs in Visual FoxPro application. We need take to take a look at SimpleChart control. You can download SimpleChart control (.zip) from link provided at the bottom of this post.

Visual FoxPro Tips: Programmatically Change Command Window Font

Sometime, we are bored with it's default Courier New font at Visual FoxPro command line window. Of course we can make a change to FoxPro's command window font with it's properties. But, this chance may be quite takes time. With a set of codes written in a .prg file, we can make font turnover with just one click or one Enter.

Wednesday, May 9, 2007

Mengapa Aplikasi yang Anda Buat Tidak Mau Jalan?

Bagi para programmer pemula, seringkali mereka kebingungan setelah membuat suatu aplikasi, kemudian di-compile, ternyata file hasil kompilasi (biasanya .exe :-) ) tidak mau jalan. Hal ini seringkali mendorong untuk mereview seluruh kode program. Padahal masalah sebenarnya sangat sepele.

Masalah yang sering terjadi adalah bahwa baris berikut seringkali tidak disertakan dalam program utama (main program).

read events

Perintah di atas memerintahkan processor untuk menjalankan setiap instruksi dari program yang anda buat.

Terkadang masalah belum selesai, karena setelah aplikasi berhasil dijalankan dan ditutup, kesalahan kembali terjadi. Kesalahan tersebut yaitu bahwa aplikasi tidak bisa dijalankan lagi. Hal ini disebabkan tidak adanya baris berikut dalam prosedur Exit dari aplikasi yang dibuat.

clear events

Baris di atas merupakan pasangan dari perintah pertama. Perintah ini menghapus seluruh rangkaian instruksi yang dijalankan berdasarkan kode dari baris read events.

Bagi para programmer senior, mungkin hal seperti ini terasa lucu. Akan tetapi untuk pemula bisa sangat membingungkan.