One more question - to return temp as above, do I need to cast it somehow? Trying the below doesn't work for me, Unable to Convert from Int to Foo.
Thanks.
EDIT: Ah. I was doing Create() instead of Create:Foo()
I'm figuring when you use :<type> after a function, you're specifying return type?
Strict Type Foo Function Create() Local temp:Foo = New Foo Return temp End Function End Type Global fooInstance:Foo = New Foo.Create()
Thanks.
EDIT: Ah. I was doing Create() instead of Create:Foo()
I'm figuring when you use :<type> after a function, you're specifying return type?