Hi folks,
I have an application using a main dictionary and an external one, both having the same record names (the dictionaries have different names).
For example, both have the PERSON record.
If I try inserting a record, such as in
INSERT(PERSON(i));
Naturally I get a compiler error, saying that
The symbol 'PERSON' exists more than once in your application so you must provide qualifiers (such as the dictionary name) to avoid ambiguity
Then I qualify with the dictionary name
insert(BRUMA3_10_ENTREVISTA_DICT.PERSON(ind));
Then I get another error message saying
Record, group or multiple item name expected
Which appears to me that I cannot have duplicate record names in different dictionaries. Is that so?
Best
Ari
insert command using a qualifier for the record name
-
- Posts: 1860
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: insert command using a qualifier for the record name
You'll have to give more details, like if this is an entry or batch application. It would be easier to test if you posted (or emailed) the two dictionaries.
The insert function takes a "group," not a record, so BRUMA3_10_ENTREVISTA_DICT.PERSON won't work because the dictionary prefix will specifically be interpreted as a record. Things get tricky because for external dictionaries the group and record names are identical, but I imagine there is a way for you to get your code to work.
The insert function takes a "group," not a record, so BRUMA3_10_ENTREVISTA_DICT.PERSON won't work because the dictionary prefix will specifically be interpreted as a record. Things get tricky because for external dictionaries the group and record names are identical, but I imagine there is a way for you to get your code to work.
Re: insert command using a qualifier for the record name
Hi Greg,
I´m sorry I´ve posted this issue under Editing, I should have posted it under Entry.
Anyway, please see the attached snipet with the compuler error (I´m faking the insert on an external file, and it works if not for the duplicate record names).
Best
Ar
I´m sorry I´ve posted this issue under Editing, I should have posted it under Entry.
Anyway, please see the attached snipet with the compuler error (I´m faking the insert on an external file, and it works if not for the duplicate record names).
Best
Ar
- Attachments
-
- BRUMA2col_500_Entrevista.zip
- (85.13 KiB) Downloaded 658 times
Best
Ari
Ari
-
- Posts: 1860
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: insert command using a qualifier for the record name
Sadly, I can't figure out any way to get this to compile. The "parent" that you could use to differentiate which "group" you're looking for would be something like this, __EFlow_BRUMA2COL_10_ENTREVISTA_DICT.D_Morador, but the compiler is not designed to handle those "external flows" when evaluating the symbol.
So, unfortunately, there is no way to do this (as of CSPro 7.7) without renaming one of your dictionary records.
So, unfortunately, there is no way to do this (as of CSPro 7.7) without renaming one of your dictionary records.
Re: insert command using a qualifier for the record name
"renaming one of your dictionary records."
That´s what I did.
Thanks anyway
Best
Ari
That´s what I did.
Thanks anyway
Best
Ari
Best
Ari
Ari