1) see GeneralUtils.brs
'******************************************************
'Validate parameter is the correct type
'******************************************************
Function validateParam(param As Object, paramType As String,functionName As String, allowInvalid = false) As Boolean
if type(param) = paramType then
return true
endif
if allowInvalid = true then
if type(param) = invalid then
return true
endif
endif
print "invalid parameter of type "; type(param); " for "; paramType; " in function "; functionName
return false
End Function
That is what it does exactly.
2) It depends on the screen. If it is an roScreen or roImageCanvas, then no, line breaks don't work - you have to manually split lines. If it is the description area on a springboard or other precreated screen, then yes. Either CHR(10) or CHR(13) does a break/line feed.