Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

I NEED A PAYROLL PROGRAM

I need a pay roll program that will store employes details in a file and through Qbasic be able to change employee details, delete employee, create employee payslips. I do not the programs compiled but as .bas files and nothing to complicated that I won't understand.


Comments

  • : I need a pay roll program that will store employes details in a file and through Qbasic be able to change employee details, delete employee, create employee payslips. I do not the programs compiled but as .bas files and nothing to complicated that I won't understand.


    Easy, just make a structure

    ( its been a long time I havent coded in QB but I think its something like )


    type

    name as string *50 ( if 50 chars is enough)

    lastname as string *50

    age as integer

    blah

    blah

    end type


    now you got your structure


    fill your structure

    open a file in binary mode write your struct

    in

    you want to modify it

    open the file, get the structure, modify it

    then rewrite all other entries and and change the

    one you modified.





Sign In or Register to comment.