'Function Wrapper$(Var$,width)
' While Var <> ""
' result$ = ""
' ;if length of string Is greater than our width
' If Len(Var) > width
' spotcheck = width
' char$ = ""
' ;Look For the last space in our Next 'width chunk' of the MasterText
' Repeat
' spotcheck = spotcheck - 1
' char = Mid(Var,spotcheck,1)
' Until char = " " Or spotcheck = 0
' ;didn't find a space
' If spotcheck = 0
' result = Left(Var,width)
' Var = Right(Var,Len(Var) - width)
' ;found a space
' Else
' result = Left(Var,spotcheck - 1)
' Var = Right(Var,Len(Var) - spotcheck)
' EndIf
' ;length of string Is less than Return width so send it all back
' Else
' result=Var
' Var=""
' EndIf
' Print result
' Wend
'End Function