I'm trying to make a simple report from scratch in Clarion 12. Not really sure if I'm configuring something wrong, but this seems simple enough.
I'm using just one regular TPS file, a wizard generated browse/form and report.
I can't make this app to compile; the problem is the report: the file prefix is MTD, if I enter the report editor I see the lines as
STRING(@n-14),AT(50,50,1900,170),USE(MTD:MyID),RIGHT,#ORDINAL(22)
Which is perfect, I can also edit the report properly, but when I "make" the App, it gives these errors:
Unknown identifier: MYF:MYID - H:\TestPrint\clw\TestPrint003.clw:29,61
Every field of the report is changed from MTD to MYF, thus giving an unknown identifier error.
When I check the generated code, indeed it's wrong:
ENTRY(@n-14),AT(72,20,64,10),USE(MYF:MyID),RIGHT(1)
(MYF instead of MTD)
And still, I see it as MTD: inside the report.
Steps to reproduce
I'm attaching all the sources for my sample program. Try compiling it to see the error.
The problem in your test app is that the 'UpdateMyTestData' FORM Procedure has every field hardcoded with the MYF: prefix. The Report and Browse procs are fine, it's just the FORM that carries the wrong prefix.
In the PW12.DCT for the MyTestData table under the 'Controls' Tab >> Window Sub-Tab the default controls for the column's Entry and Option controls has a prefix of MYF (and for Prompts ?MYF which of course does not really conflict, only misleads).
Using the latest Beta Release of C12, if I change the Prefix on the Table and Save and Close the DCT, the new prefix cascades to all of the default controls in the DCT.
I suspect that the Table had a Prefix of MYF at one point and that prefix was changed, but for whatever reason the change did not cascade down to the defaults in the Dictionary.
It IS a very old DCT (I think about 20 years, at least), no idea when the extension was changed, but that seems a logical explanation. So, it's not important now, thank you again!