Thank you, Oliver. Using String.len(name) completely solves the problem. -- View this message in context: http://gambas.8142.n7.nabble.com/Lenght-of-a-string-tp55855p55858.html Sent from the gambas-user mailing list archive at Nabble.com.