Fun With Types

Blitz3D Forums/Blitz3D Programming/Fun With Types

Yep, Blitz3D's unorthodox syntax for types makes things a little confusing here, but the answer is that you need to specify that you're going to return a type in the function prototype.

Try this:

Function GetMovie.movies(Title$)
	For IterateMovies.Movies=Each Movies
		If IterateMovies\Title$=Title$
			Return IterateMovies	
			Exit
		End If
	Next
	Return Null
End Function