Recent

Author Topic: i need some help making a logging program  (Read 1807 times)

ProxySAM

  • Newbie
  • Posts: 1
i need some help making a logging program
« on: September 28, 2018, 12:07:04 am »
Hello, I'm looking for some assistance in making a program which allows a group of users to clock in and out. It also needs to log the time of the user clocking in and out. Any advice?

AnthonyTekatch

  • Jr. Member
  • **
  • Posts: 78
Re: i need some help making a logging program
« Reply #1 on: September 28, 2018, 02:14:12 am »
Lot's of possibilities. Generally you can start with something that writes to a file.

Make sure that you close the file after each event (user-log-in/user-log-out). This is important as your computer might crash at any time, and you do not want to lose the data in memory ... write it to disk.

This will get you started writing to a file:
  http://wiki.freepascal.org/File_Handling_In_Pascal

The have a push button trigger the writing of some text line to a file.

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: i need some help making a logging program
« Reply #2 on: September 28, 2018, 06:59:56 am »
Hello, I'm looking for some assistance in making a program which allows a group of users to clock in and out. It also needs to log the time of the user clocking in and out. Any advice?

What kind trigger/event will you use?
I mean some companies choosing card readers for the personnel attendance records, some of using finger readers.
And you need to pull / listen this devices for record event.
You may create your system for logging or you may choose a kind of database like as MariaDB (Mysql clone), Sqlite etc.

 

TinyPortal © 2005-2018