Format function in asp

16/09/2003 - 21:31 por news.microsoft.com | Informe spam
Hi everybody

I would like to know if there is any function that replaces the vb format
function.

The idea is format a string with n digits as the example
format ( "teste", "@@") ' result: te
format ( "teste", "@@@@@") ' result: teste
format ( "teste", "@@@@@") ' result: teste | with two spaces after
Any help in english, portuguese or spanish will be preciated.
Thank you
 

Leer las respuestas

#1 news.microsoft.com
16/09/2003 - 22:06 | Informe spam
that's the spirit
thank you

"Jhonny Vargas P." escreveu na mensagem
news:%

fLeft ( "teste", 2) ' result: te
fLeft ( "teste", 5) ' result: teste
fLeft ( "teste", 7) ' result: teste | with two spaces after

Function fLeft(cadena, cantidad)
Left( "teste" & Space(cantidad), cantidad)
End Function

Saludos,
Jhonny Vargas P. [MS MVP-ASP]
Santiago de Chile


"news.microsoft.com" wrote in message
news:
> Hi everybody
>
> I would like to know if there is any function that replaces the vb


format
> function.
>
> The idea is format a string with n digits as the example
> format ( "teste", "@@") ' result: te
> format ( "teste", "@@@@@") ' result: teste
> format ( "teste", "@@@@@") ' result: teste | with two spaces after
> Any help in english, portuguese or spanish will be preciated.
> Thank you
>
>


Preguntas similares