So here's the source files for example:
B Source:
type tPrintThing
a as string
b as string
endtype
Main Source:
A as tPrintThing
A.a = "Hello"
A.b = "World"
print A.a
print A.b
Now that will work fine, but this won't:
Main Source:
A as tPrintThing
A.a = "Hello"
A.b = "World"
FuncPass( A )
wait key
end
function FuncPass( Pass as tPrintThing )
print Pass.a
print Pass.b
endfunction
Before it worked fine and if you look at a ton of my projects the UDT is in another source, and the projects even compile now. But now it just comes up with a Unknown Parameter Error ONLY IN NEW PROJECTS. If I want to get it to work, I have to do this:
Main Source:
type tPrintThing
a as string
b as string
endtype
A as tPrintThing
A.a = "Hello"
A.b = "World"
FuncPass( A )
wait key
end
function FuncPass( Pass as tPrintThing )
print Pass.a
print Pass.b
endfunction
But that mean's I now have two of the same UDT and it should come up with a duplication error, but it doesn't. Weird right.
A dream is a fantasy, if you achieve that fantasy it was never a dream to begin with.