Right$
Result = Right$ ( String AS String [ , Length AS Integer ] )
Result = Right ( String AS String [ , Length AS Integer ] )
Retorna o
Length últimos caracteres de uma string.
Se
Length não for especificado, o último caractere da string é retornado.
Se
Length for negativo, toda a string, exceto o (-
Length ) dos primeiros caracteres é retornado.
Right$
é otimizado para que não haja duplicação da string quando gerar o resultado.
Exemplos
PRINT Right$("Gambas", 4)
mbas
PRINT Right$("Gambas", -1)
ambas
Veja também