Sadly, the documentation of FreeBasic is missing explanations and examples with classes and type, as in this part: https://www.freebasic.net/wiki/ProPgArrays
I've tried the following (abc should be a variable sized array) - but it does not work:
Code: Select all
type SomeThing extends Object
'[...]
end type
type SomeClass extends Object
declare abstract sub RedimAbcArray(size as Short)
private:
as SomeThing abc()
end type
Code: Select all
error 9: Expected expression, found ')' in 'as SomeThing abc()'
'