RIGHT_POS$()

RIGHT_POS$(S,P)

RETURNS A STRING MADE WITH STRING S FROM POSITION P

  • Type: Function
  • Parameters: 2
  • Group: Strings

ACTION

The function RIGHT_POS$(S,P) returns a string made with string S from position P

SYNTAX: Result$=RIGHT_POS$(S,P)

  • S = string expression.
  • P = real or integer value.
  • Result$ is a string.

USE

  • The function RIGHT_POS$() is used to extract characters from a certain position.

ERROR

  • If S is not a correct string expression.
  • If P is not a correct expression.

EXAMPLE

dim v$

v$="Hello"

print right_pos$(v$,3)

print "llo"

SEE ALSO

EDIT