[D#83071] CDK EnumFormat method returns corrupted types

forum.gupta.bugreport (2005-2010)
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3390
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

[D#83071] CDK EnumFormat method returns corrupted types

Post by Dave Rabelink » 02 May 2005, 12:49

 Posted by:  Dave Rabelink 

Log-A-Bug has reviewed the issue listed below and determined that this is a
defect. The defect number is #83071.
For further information watch for the fix in the Fixes.Wri file in future
PTF's or Releases.

#83071
cdkApplication EnumFormat method returns corrupted types for the formats.

FYI ALSO HAPPENS WITH TD2005 same for previous BUG REPORT DEFECT#83069

Thank you,

Log-A-Bug
A Service of Gupta Technologies

********************************
Bug report:

The EnumFormats method on the cdkApplication class located in
TD SDK returns corrupted types for the formats. There seems to be
a NULL character after the type text so when using this in concatenations
it will result in unwanted behaviour.

After the method EnumFormats there should be something like the list below.
(It concatenates type, a : character and format strings which are returned
by the method)

Number: 0'%'
Number: #0
Number: ###000
Number: ###000;'($'###000')'
Date/Time: hh:mm:ss AMPM
Date/Time: M/d/yy
Date/Time: MM-dd-yy
Date/Time: dd-MMM-yyyy
Date/Time: MMM d, yyyy
Date/Time: MMM d, yyyy hh:mm AMPM
Date/Time: MMMM d, yyyy hh:mm AMPM

But it shows :

NumberNumberNumberNumberDate/TimeDate/TimeDate/TimeDate/TimeDate/TimeDate/TimeDate/Time

Workaround :
Get the type string up until the NULL character in the buffer.

sType = SalStrLeftX( sType, SalStrLength( sType ) )

Dave Rabelink

Return to “gupta.bugreport”

Who is online

Users browsing this forum: [Ccbot] and 0 guests