Subject time calculations
From Moses Hanna <mosesjhanna@optusnet.com.au>
Date Sat, 14 Nov 2020 16:50:46 +1100
Newsgroups dbase.getting-started

I am quoting down under a form image
I am trying to calculate duration time in minutes
for the last two days i am trying but unsuccessful
I practiced programing long time ago
now I have forgotten many many thing
now I need help
how to fill ef3 of the form with number of duration time in minutes
any help please

** END HEADER -- do not remove this line
//
// Generated on 14/11/2020
//
parameter bModal
local f
f = new UntitledForm()
if (bModal)
   f.mdi = false // ensure not MDI
   f.readModal()
else
   f.open()
endif

class UntitledForm of FORM
   set procedure to time.cc additive
   with (this)
      height = 9.5455
      left = 124.4286
      top = 4.4091
      width = 48.5714
      text = ""
   endwith

   this.PB1 = new PUSHBUTTON(this)
   with (this.PB1)
      onClick = {;form.ef1.value = date()}
      height = 1.0909
      left = 5.0
      top = 2.1818
      width = 15.2857
      text = "Client In"
   endwith

   this.TIME1EF = new ENTRYFIELD(this)
   with (this.TIME1EF)
      height = 1.0
      left = 22.0
      top = 2.1818
      width = 12.0
      value = ""
   endwith

   this.PB2 = new PUSHBUTTON(this)
   with (this.PB2)
      onClick = {;form.ef2.value = date()}
      height = 1.0909
      left = 5.0
      top = 4.5455
      width = 15.2857
      text = "Client Out"
   endwith

   this.TIME2EF = new ENTRYFIELD(this)
   with (this.TIME2EF)
      height = 1.0
      left = 22.0
      top = 4.5455
      width = 12.0
      value = ""
   endwith

   this.TEXT1 = new TEXT(this)
   with (this.TEXT1)
      height = 1.0
      left = 5.0
      top = 6.3636
      width = 15.0
      text = "Duration In"
   endwith

   this.DURATIONEF = new ENTRYFIELD(this)
   with (this.DURATIONEF)
      height = 1.0909
      left = 22.0
      top = 6.0
      width = 12.0
      value = ""
   endwith


endclass