Hi, I get a compiler error that I do not understand. The error is:
4 Duplicated definition, Outp in 'dim shared Outp As OutputType'
and it occurs in the last line of the code below. The contents of the UDT don't matter, it is in the name of the variable 'Outp' for when I change it, the compiler error disappears. Of course I can use a different name but I would like to understand why this error occurs. AFAIK it is not a keyword or so. And there is no variable with this name elsewhere in the program. Any help is appreciated.
Wilko
Type OutputType
Send2Screen As boolean
Send2Printer As boolean
Send2File As boolean
Send2Csv As boolean
Send2XML As boolean
DisplaySummary As boolean
DisplayDetails As boolean
DisplayOtherInfo As boolean
DisplayGraphs As boolean
End Type
dim shared Outp As OutputType
There is a function called outp in intrin.bi (in the FreeBasic headers).
OK, that explains the error. Thanks, Jose!