Alpha Video Training
Results 1 to 2 of 2

Thread: Time formats for forms

  1. #1
    Member Jerry Gray's Avatar
    Real Name
    Jerry Gray
    Join Date
    Aug 2004
    Location
    Biloxi, MS
    Posts
    482

    Default Time formats for forms

    What are the chances of getting a few time formats for forms?

    Something like:

    Military....... 15:45
    Short Time..... 3:45 pm
    Long Time...... 03:45:30 pm
    Scientific..... 15:45:30.40

    If not at the form level, how about masks available at the field rule level?

    http://msgboard.alphasoftware.com/alphaphorum/read.php3?num=15&id=5158&loc=0&offset=80&sortby=lastreply&direction=desc&thread=5158

    Thanks,
    Jerry Gray

  2. #2
    Member
    Real Name
    Cassim Badsha
    Join Date
    Aug 2002
    Location
    Pietermaritzburg, Kwa Zulu Natal , South Africa
    Posts
    11

    Default RE: Time formats for forms

    Hello Jerry,

    Perhaps the following spells out the picture a bit fuller.
    I hope it will strengthen the request.

    This is from the HELP file of a RAD Development product.

    Time Pictures

    @Tn[s][B]

    @T All time pictures begin with @T.

    n Determines the time picture format. Time picture formats range from 1 through 8. A leading zero (0) indicates zero-filled hours.
    s A separation character. By default, colon ( : ) characters appear between the hour, minute, and second components of certain time picture formats. The following s indicators provide an alternate separation character for these formats.
    . (period) Produces periods
    ' (grave accent) Produces commas
    - (hyphen) Produces hyphens
    _ (underscore) Produces spaces
    B Specifies that the format displays as blank when the value is zero.

    Times may be stored in a numeric variable (usually a LONG), a TIME field (for Btrieve compatibility), or in a STRING declared with a time picture. A time stored in a numeric
    variable is called a "Standard Time." The stored value is the number of hundredths of a second since midnight. The picture token converts the value to one of the eight time
    formats.

    For those time pictures which contain string data, the actual strings are customizable in an Environment file (.ENV). See the Internationalization section for more information.

    Example:

    Picture Format Result

    @T1 hh:mm 17:30
    @T2 hhmm 1730
    @T3 hh:mmXM 5:30PM
    @T03 hh:mmXM 05:30PM
    @T4 hh:mm:ss 17:30:00
    @T5 hhmmss 173000
    @T6 hh:mm:ssXM 5:30:00PM
    @T7 Windows Control Panel setting for Short Time
    @T8 Windows Control Panel setting for Long Time

    Alternate separators
    @T1. hh.mm Period separator
    @T1- hh-mm Dash separator
    @T3_ hh mmXM Underscore produces space separator
    @T4' hh,mm,ss Grave accent produces comma separator

Similar Threads

  1. Run Time with no Forms tab on control panel
    By Bob Arbuthnot in forum Alpha Five Version 6
    Replies: 2
    Last Post: 04-22-2005, 11:10 AM
  2. run time forms different
    By Lanny Tonning in forum Alpha Five Version 6
    Replies: 3
    Last Post: 02-04-2005, 01:03 PM
  3. Handling multiple forms at the same time
    By mronck in forum Alpha Five Version 5
    Replies: 1
    Last Post: 02-02-2004, 07:05 AM
  4. Conditional Formats in Forms
    By John Castle in forum Alpha Five Version 5
    Replies: 1
    Last Post: 04-23-2003, 08:30 AM
  5. Currency formats
    By Doug Hawkins in forum Alpha Five Version 5
    Replies: 10
    Last Post: 12-12-2002, 02:42 AM

Bookmarks

Posting Permissions

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