F Francisco Gonzalez 1962 Member Licensed User Aug 30, 2019 #1 Hello, I think this has to be easy but I can't find the way to declare the sub: I want to declare a sub that returns a bidimensional matrix parameters 2 integers a, b returning a matrix (a,b) of integer elements I tried: Dim Sub(a as int, b as int) (,) as int but it didn't work. Please can you help me? Cheers Francisco
Hello, I think this has to be easy but I can't find the way to declare the sub: I want to declare a sub that returns a bidimensional matrix parameters 2 integers a, b returning a matrix (a,b) of integer elements I tried: Dim Sub(a as int, b as int) (,) as int but it didn't work. Please can you help me? Cheers Francisco
klaus Expert Licensed User Longtime User Aug 30, 2019 #2 B4X: Sub Matrix(a As Int, b As Int) As Int (,) Private m(a, b) As Int Return m End Sub Upvote 0