General information
Category:
Coding, syntax & commands
Hey Tobey,
I had the exact same problem and discovered it was a problem with the GENDBC program itself. It had problems if you had two tables in youe DBC that shared a similar name. In our case the table names were Newsletter and NewsletterType. The problem was in the following line of code in the GETRI function of GENDBC:
WriteFile(m.hGTFile, "LOCATE FOR ObjectType = 'Table' AND ObjectName = '" + ;
It should be changed to:
WriteFile(m.hGTFile, "LOCATE FOR ObjectType = 'Table' AND ALLTRIM(ObjectName) == '" + ;
The problem was with the "=" operator. The line of code above IMHO needs to search for an EXACT match. By trimming the object name (the table) and using the "==" operator (which looks for an exact match), we were able to eliminate the problem.
HTH,
Brian
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only