Anyone have any idea what’s causing this and how I can resolve it?
Seems for some reason, it’s duplicating a variable defined in a QUEUE in Local Data
- I removed it, then recompiled and now it’s fixed - but weird that Clarion thought it had to duplicate it, while it only shows once in the Local Data
A screen shot of your local data pad would help understand.
IIRC the Data Pad does not fully support having the same Variable Name inside multiple Structures i.e. GROUP or QUEUE.
I cannot recall if the problem is when you have a PRE(xxxx), or none i.e. PRE() so dot syntax is used MyQueue.FieldName (as Rick notes below it is the latter)
What I do sometimes it put the Pre: on each field like below Q has empty PRE()
and the prefix ‘WidQue:’ on each field:
WidgetQueue QUEUE,PRE() !<--- simulate PRE(WidQ)
WidQ:Name STRING(64)
WidQ:Size LONG
END
If you have the PRE filled in for each structure (ie. PRE(xxx), then you can have the same field in each group. With an empty PRE() you will get duplicate errors.