<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.br.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Mar 2015 09:02:14 Z</lastBuildDate><pubDate>5 Mar 2015 09:02:14 Z</pubDate><description>http://windevdesenvolvimento.blogspot.com.br/2015/03/windev-repeatstring-function-repeticoes.html&#13;
&#13;
[code:wl]&#13;
Dat_hora_solici is string = 20150304154034&#13;
Q is int = 17 - Length(Dat_hora_solici)&#13;
Info("Q =&gt;"+Q)&#13;
//Total de Tamanho que tem de ter = 17&#13;
//Q=vai diminuir 17 - tamanho do que foi recebido = que vai dar 3&#13;
Info("Q =&gt;"+Dat_hora_solici)&#13;
Dat_hora_solici = Dat_hora_solici + RepeatString("0", Q)&#13;
//Vai preencher com 0 o restante &#13;
//Resultado Abaixo&#13;
//20150304154034          -&gt; ANTES&#13;
//20150304154034000       -&gt; DEPOIS&#13;
Info("Q =&gt;"+Dat_hora_solici)&#13;
[/code]&#13;
&#13;
[code:wl]&#13;
res is string&#13;
res = RepeatString("x", 4)     // RETORNA "xxxx"&#13;
Info(" X , 4" + res)&#13;
res = RepeatString("EU", 5)  // RETORNA EUEUEUEUEU&#13;
Info(" EU , 5" + res)&#13;
res = RepeatString("ZERO", 2)      // RETORNA ZEROZERO&#13;
Info(" ZERO ,2" + res)&#13;
res = RepeatString("UM", 0)      // RETORNA EM BRANCO&#13;
Info(" UM , 0" + res)&#13;
&#13;
&#13;
[/code]</description><ttl>30</ttl><generator>WEBDEV</generator><language>pt_BR</language><link>https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/154-repeatstring-function-repeticoes/read.awp</link><title>WD RepeatString (Function) - Repetições</title><managingEditor>moderateur@pcsoft.fr (Le modérateur)</managingEditor><webMaster>webmaster@pcsoft.fr (Le Webmaster)</webMaster></channel></rss>
