Code:
#COMPILE EXE #DIM ALL #INCLUDE "Win32Api.inc" DECLARE FUNCTION TestFunction(TestVariable AS ANY) AS LONG FUNCTION PBMAIN () AS LONG LOCAL MyVariable AS STRING MyVariable = " Hello" TestFunction MyVariable END FUNCTION FUNCTION TestFunction(TestVariable AS ANY) AS LONG MSGBOX TestVariable END FUNCTION
If I change "TestVariable" to AS STRING in the function I get a type mismatch. (Which is correct)
Now why can I have AS ANY in Win32Api.inc, but not AS ANY in my own code?????
I am missing something here that must be fundamental
Comment