Dotinho Posted June 1, 2009 at 07:00 AM Report #268844 Posted June 1, 2009 at 07:00 AM Bom dia pessoal, tenho aqui uma duvidadzinha, ja tentei procurar mas nao encontrei nada, se calhar nao há ou nao procurei no sitio certo.. Olhem é assim, por exemplo, tenho um texte "bebe" mas o campo tem que ter obrigatoriamente 10 carecteres, quer dizer que tenho que acrescentar espaços tipo "bebe ", há alguma classe para tratamento de texto que possa fazer isso? cmps Luis Lourenço
jpaulino Posted June 1, 2009 at 08:35 AM Report #268850 Posted June 1, 2009 at 08:35 AM Olá, Podes utilizar o PadRight() definindo o número de espaços. Exemplo: Dim str As String = "bebe" Debug.WriteLine(str.PadRight(10, " "c))
Dotinho Posted June 1, 2009 at 09:27 AM Author Report #268872 Posted June 1, 2009 at 09:27 AM Obrigado pela dica 😉 cmps Luis Lourenço
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now