Hello, My project contains several files: main.c routines.c config.h etc. In the main.c I make a structure like:
xdata struct StructUserRec{ BYTE XPIDNr[9]; char UserName[15]; BYTE ContrHour; BYTE ContrMin; BYTE WorkedHour; BYTE WorkedMin; }; xdata struct StructUserRec UserRec[10];
extern struct StructUserRec UserRec[10];
Note that you don't need the xdata on the structure definition - just when you define a variable of that structure type.