Solved TD-18600: Duplicate formats issue

Report bugs and possible workarounds for ANSI TD versions
User avatar
Charlie
Canada
Posts: 595
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

TD-18600: Duplicate formats issue

Post by Charlie » 23 Jul 2013, 13:02

(Please see in-line image below)

This is a really annoying bug in TD5.2 . I don't know if this has been resolved in subsequent releases; regardless, it doesn't matter much as we simply do not have the resources to handle an upgrade.

Does anybody know an easy workaround to avoid this pain in the rear? The only thing I can think of is regularly checking the Formats section of the outline for each of our 136 app files.

It would sure be nice if Gupta gave out a little app that could scan every file and eliminate duplicate entries in Formats. Maybe a little CDK application that could be compiled in any version of TD, and that could tackle fixing source files in any version of TD ???

References:
  • * TD-14447
    * TD-18600
formats_issue.jpg
You do not have the required permissions to view the files attached to this post.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3218
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18600: Duplicate formats issue

Post by Dave Rabelink » 24 Jul 2013, 10:10

I have quickly hacked something using CDK. NO WARRANTY !!!

It will load a source, check for duplicate formats and removes them. The result will be saved as a new source file.

It can give you a start in creating a complete tool (eg scanning all files in a folder etc). This CDK application just uses the minimal and I did not thoroughly check it.
(never use this on original sources, use backups !!!!!!!)

The source is in TD15 format but can be used in other TD versions.
Beware to rename the cbcdk.apl which has another name in newer TD versions (cdk.apl).

The ZIP file contains a test source (TestFormats.apt) which contains duplicate formats which can be used to test the CDK tool.
FixDuplicateFormats.zip
I hope this helps.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

User avatar
Charlie
Canada
Posts: 595
Joined: 07 Mar 2017, 18:52
Location: Fredericton, New Brunswick, Canada

Re: TD-18600: Duplicate formats issue

Post by Charlie » 24 Jul 2013, 13:37

Dave, I'd give you a big bear hug, but then I'd be afraid you might not be so willing, next time, to offer up this sort of goodie again !!!

I can't wait to play with this and check out your code !

Return to “Bug Reports (TD 4.2 and older)”

Who is online

Users browsing this forum: [Ccbot] and 0 guests