Kbase P114534: The STRING 4GL Function does not work properly when using time formats with a 3-digit hour
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/30/2006 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.1A
SYMPTOM(s):
The STRING 4GL Function does not work properly when using time formats with a 3-digit hour
Calling the STRING 4GL function in order to convert an integer into a character value displayed with a time format
Passing an amount of time (seconds) corresponding to 100 or more hours in to the STRING function. e.g.:
DEFINE VARIABLE viTime AS INTEGER INITIAL 360000 NO-UNDO.
DISPLAY STRING(viTime,"HH:MM:SS":U).
Progress displays the result in a weird format. e.g.: ":0:00:00"
CAUSE:
This is expected behavior. The STRING function code that deals with time formats only allows a 2-digit hour
FIX:
An enhancement request is already in order so that something like DISPLAY STRING(viTime,"HHHH:MM:SS":U) can be used in the 4GL
The number of the Enhancement Request related to this is 0000003357