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
    Location
    New Zealand
    Posts
    1,650

    Default Class: cDbTimeForm for TIME DEO Entry

    Hi

    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
    Code:
    Object oOrderHea_Order_Time is a cDbTimeForm
      Entry_Item OrderHea.Order_Time
      Set Size to 12 67
      Set Label to "Order Time:"
    End_Object

    Code:
    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
    Regards,
    Raveen Sundram

    Software Development Manager
    Excellent Software Ltd
    Auckland, New Zealand
    www.helixretail.co.nz


Posting Permissions

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