Tag Archives: int

Função “três pontinhos”

Código simples para você ter aqueles “três pontinhos” em sua notícia, feeds etc…   Usando VBScript <%@ Language="VBScript" %> <% Public Function Pontos(VarTexto, Max) ' Recebemos os valores If Int(Len(VarTexto)) > Max Then Response.Write(Left(VarTexto, Max)&"…") ' Usamos a função "substring" para fazer os cortes Else Response.Write(VarTexto) End If End Function Texto = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the whenwhen, when an unknown …
Continue Lendo

Agência OFF, desenvolvimento de soluções web para as Agências Digitais

While com JAVA

Código simples só para mostrar como se comporta uma função While no JAVA: Usando uma classe de exemplo “ExemploWhile”. public class ExemploWhile { public static void main (String[] args) { int i = 0; while (i < 10) { System.out.println("O valor de i é " + i); i++; } } }

Agência OFF, desenvolvimento de soluções web para as Agências Digitais

Tags: