Hi,
I might be wrong but I don't think you can do that.
The #IFNDEF Tmp2 will check if you've previoulsy not done #DEFINE Tmp2, where Tmp2 in this case a compile-time constant Tmp2 (not a PBP constant OR PBP variable).
So, the only way to do it is to also define "something" in the main file, at the same time as you declare your Tmp2 variable and then check that "something" - not ideal but I think (though I'd like to be wrong) it's the only way.Code:Tmp2 VAR BYTE #DEFINE VarCreatedAgain, I hope I'm wrong because I can see what you're trying to do could be useful.Code:#IFNDEF VarCreated Tmp2 VAR BYTE #ENDIF
/Henrik.




Bookmarks