Hi,
I know we do not have Constants in B4a yet.
This is what I was trying to do:
Type TouchSystemType ( _
TouchCount As Int, _
TouchPath(MaxPath) As TouchCoordType, _
TouchPathIsActive As Boolean)
This will work. But if I do:
Dim MaxTouchPath As Int : MaxTouchPath = 200
Type TouchSystemType ( _
TouchCount As Int, _
TouchPath(MaxTouchPath) As TouchCoordType, _
TouchPathIsActive As Boolean)
I get:
Error description: Cannot access variable in type declaration.
I know it is probably intended, but it will be useful to have this so that I do not have to define a Hard Constant everywhere in my code.
Thanks.
I know we do not have Constants in B4a yet.
This is what I was trying to do:
Type TouchSystemType ( _
TouchCount As Int, _
TouchPath(MaxPath) As TouchCoordType, _
TouchPathIsActive As Boolean)
This will work. But if I do:
Dim MaxTouchPath As Int : MaxTouchPath = 200
Type TouchSystemType ( _
TouchCount As Int, _
TouchPath(MaxTouchPath) As TouchCoordType, _
TouchPathIsActive As Boolean)
I get:
Error description: Cannot access variable in type declaration.
I know it is probably intended, but it will be useful to have this so that I do not have to define a Hard Constant everywhere in my code.
Thanks.