Sunday, April 23, 2017

Payroll Program in Visual Foxpro

A very simple payroll program that I wrote using Microsoft Visual Foxpro to accept the employees number of days worked and the rate per day and then our program will compute its salary. The code is very basic and easy to understand I am using Microsoft Visual Foxpro 5.0 in writing this program. Thank you.


My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.







Sample Program Output


Program Listing


Ok Button   Command1  Click

set decimal to 2
SET FIXED ON

clear
days_worked = val(thisform.text1.value) 

rate_per_day = val(thisform.text2.value) 

solve_salary = (days_worked) * (rate_per_day)

final_solve= round(solve_salary,2)
thisform.label4.caption = "Your salary is Php " + alltrim(thisform.text3.value)


thisform.text3.value =  final_solve


Clear Button  Command2  Click

thisform.text1.value=""
thisform.text2.value=""
thisform.text3.value=""
thisform.text1.setfocus
thisform.label4.caption =""


Quit Button Command2  Click

Quit


1 comment: