Mashiane Expert Licensed User Longtime User Oct 29, 2019 #1 Hi there For Types if a variable has not been indicated with a type, please flag. eg Code: Type GridColumn(Columns As Int, OffsetXSmall, OffsetSmall As String, OffsetXSmall has no type. Ta!
Hi there For Types if a variable has not been indicated with a type, please flag. eg Code: Type GridColumn(Columns As Int, OffsetXSmall, OffsetSmall As String, OffsetXSmall has no type. Ta!
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2019 #2 After further investigation, it is actually allowed as Type behaves the same as Dim: Code: Dim x, y As Int Type GridColumn (Columns As Int, OffsetXSmall, OffsetSmall As String) Dim z 'warning here Type ZZZ (Columns As Int, OffsetXSmall) 'warning here
After further investigation, it is actually allowed as Type behaves the same as Dim: Code: Dim x, y As Int Type GridColumn (Columns As Int, OffsetXSmall, OffsetSmall As String) Dim z 'warning here Type ZZZ (Columns As Int, OffsetXSmall) 'warning here
Mashiane Expert Licensed User Longtime User Nov 20, 2019 #3 Noted and thanks, on the bright side, not declaring variable types is 'bad' programming (according to whose standards? lol) and I keep forgetting at times and make these silly mistakes, then Boom, run my app with BANano and all hell breaks loose until I fix the variable types. Funny because it does pick it up on the second type you have declared and assumes a string will be used, and not on the first type for OffsetXSmall. Thanks anyway, will keep on learning.
Noted and thanks, on the bright side, not declaring variable types is 'bad' programming (according to whose standards? lol) and I keep forgetting at times and make these silly mistakes, then Boom, run my app with BANano and all hell breaks loose until I fix the variable types. Funny because it does pick it up on the second type you have declared and assumes a string will be used, and not on the first type for OffsetXSmall. Thanks anyway, will keep on learning.