Results 1 to 3 of 3

Thread: Class: cDbTimeForm for TIME DEO Entry

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    New Zealand

    Default Class: cDbTimeForm for TIME DEO Entry


    We are sharing our cDbTimeForm class as per requested.

    Use this with TIME data-type fields

    See Example: Usage:
    Click image for larger version. 

Name:	cdbTimeForm.png 
Views:	77 
Size:	34.1 KB 
ID:	15521
    Object oOrderHea_Order_Time is a cDbTimeForm
      Entry_Item OrderHea.Order_Time
      Set Size to 12 67
      Set Label to "Order Time:"

    Set Field_Label_Long Field OrderHea.Order_Time to "Time"      
    Set Field_Mask_Type Field OrderHea.Order_Time to Mask_Time    
    Set Field_Mask Field OrderHea.Order_Time to "h:mm ap"

    Using the std dbForm with masking simply doesn't work, especially for rapid user entry.
    Using a purposed built class for Time inputs works better, as each component ( HH, MM, SS, AM) can be accessed independently using the spinform control.

    Note: this class was based on the cWindowEx project on VDF-Guidance

    FYI: Class has been tested in DF19.1 & DF20.1 (32/64)

    Happy Weekend !!!
    Attached Files Attached Files
    Last edited by raveens; 15-Jul-2022 at 04:57 AM. Reason: more info
    Raveen Sundram

    Software Development Manager
    Excellent Software Ltd
    Auckland, New Zealand

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts