isEmpty
Publicado por Celso Goya 14/04/2003
[ Hits: 16.665 ]
Homepage: [Algum aURL]
Verifica se uma variável está vazia. Incluindo espaços em branco.
/*
www.moinho.net
Verify empty state of an string. Including spaces
Verifica se uma variável está vazia. Incluindo espaços em branco
Fucntion: isEmpty
Return : true if the string is empty
Retorno : true se a string estiver vaiz
e-mail : celso.goya@moinho.net
Author : Celso Goya
Instructions
If you have any questions about the functionality or sugestions please send us a report.
Instruções
Se você tiver qualquer dúvida ou sugestão sobre a funcionalidade desta função por favor envie-nos um e-mail
*/
function isEmpty(pStrText){
var len = pStrText.length;
var pos;
var vStrnewtext = "";
for (pos=0; pos<len; pos++){
if (pStrText.substring(pos, (pos+1)) != " "){
vStrnewtext = vStrnewtext + pStrText.substring(pos, (pos+1));
}
}
if (vStrnewtext.length > 0)
return false;
else
return true;
}
Validador de IP em JavaScrip com Expressão Regular
Nenhum comentário foi encontrado.
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Instalando COSMIC no Linux Mint
Turbinando o Linux Mint: o poder das Nemo Actions
Inteligência Artificial no desenvolvimento de software: quando começar a usar?
Habilitando clipboard manager no ambiente COSMIC
A compatibilidade do LibreOffice com o Microsoft Office
Colocando hotcorner no COSMIC para exibir "workspaces"









