len("José Antônio") = 14 I need to fill a text file and upload it to a system in order to make an invoice. The field "name" must have lenght = 115. If shorter than that you must complement it with spaces. So:
for i = 1 to (115 - len(name)) name = name & Space$(1) next The result is --> "José Antônio" + 101 spaces But, in the text file, "José Antônio" + 101 spaces is considered as having lenght = 113, not 115. The text file, then, is rejected by the system, because the following fields are not being correctly interpreted. Any sugestions? Thanks in advance -- View this message in context: http://gambas.8142.n7.nabble.com/Lenght-of-a-string-tp55855.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user