ev3 basic function

ev3
2018-04-14 09:11:48

i been programming in basic for +-30y

i want a translation from the next code into ev3 basic

[code]

function index( x , y )

return x + y * ( maxx , + 1

end function

sub look

for i = 0 to 5

motor.start( "bc" , 75 , 75 , false )

program.delay( .025 sec )

next i

motor.stop( "bc")

end sub

[/code]

how do you call these in ev3basic ?