I have found a bug that I have determined is in version 5, but seems to have been corrected in version 6.

When passing a function's parameter that is defined as type A and has been given a default value (of any type) and you are passing a table pointer (and maybe any type of pointer), any assignment of that pointer in the function will cause an error that says Property not found.

So to duplicate the error, just run the following code

a=tblopen(Table.current())

on one of the two simplified functions (the actual code is way more complicated) below.





' This doesn't work when called with a table pointer
' (maybe all pointers?)
FUNCTION tblopen AS A(Tablename="" as A)
tblopen=Tablename
end
END FUNCTION





' This does work when called with a table pointer
' (maybe all pointers?)
FUNCTION tblopen AS A(Tablename as A)
tblopen=Tablename
end
END FUNCTION



So the question is, is there any workable solution for A5 Version 5?

Regards,

Ira