Husky Hunter 2
  • HUNTER Operations Manual
    • Introduction to HUNTER
    • HUNTER Operation
    • File Manager
    • Basic Programming
    • Basic Functions
      • Index to Basic Functions
        • ABS
        • ARG
        • ASC
        • ATN
        • BEEP
        • CALL
        • CHAR
        • CHR$
        • CIRCLE
        • CLEAR
        • CLOSE
        • CLS
        • COM
        • CONT
        • COS
        • CRT
        • CUROFF/CURON
        • DATA
        • DATE$
        • DAY$
        • DEFSEG
        • DELETE
        • DIM
        • EDIT
        • END
        • EOF
        • ERR/ERL
        • ERROR
        • EXP
        • FILES
        • FIX
        • FOR
        • FRE
        • GOSUB
        • GOTO
        • HELP
        • IF
        • IF…THEN…ELSE
        • INCHR
        • INKEY
        • INKEY$
        • INP
        • INPUT
        • INPUT
        • INPUT USING
        • INSTR
        • INT
        • JSR$
        • KEY
        • KEY(n)
        • KILL
        • LEFT$
        • LEN
        • LET
        • LINCHR
        • LINE
        • LINPUT
        • LIST
        • LLIST
        • LLOAD
        • LN
        • LOAD
        • LOC
        • LOCATE
        • LOG
        • LOPCHR
        • LPRINT
        • LTRON
        • MAXFILES
        • MID$
        • NAME
        • NEW
        • NEXT
        • ON BREAK
        • ON COM
        • ON COMMS
        • ON ERROR
        • ON…GOSUB…
        • ON…GOTO…
        • ON KEY
        • ON POWER
        • ON POWER RESUME
        • ON TIME$
        • OPCHR
        • OPEN
        • OUT
        • PEEK
        • PI
        • POINT
        • POKE
        • POP
        • POS
        • POWER CONT
        • POWER n
        • POWER OFF
        • POWER OFF, RESUME
        • PRINT
        • PRINT#
        • PSET/PRESET
        • PUSH
        • READ
        • REM
        • RESTORE
        • RESUME
        • RETURN
        • RIGHT$
        • RND
        • RUN
        • SAVE
        • SCREEN
        • SGN
        • SIN
        • SOUND
        • SPACE$
        • SPC
        • SQR
        • SRCH
        • STOP
        • STR$
        • STRING$
        • SWAP
        • TAB
        • TAN
        • TIME$
        • TRON/TROFF
        • VAL
        • VARPTR
        • WAND
        • WHILE…WEND
        • WINCHR
        • WINPUT
        • WRITE#
    • Communications
    • Editor
    • Maintenance and Accessories
    • Appendix
  • HUNTER File Transfer Utility
  • Altair 8800 Simulator
  • Links
Husky Hunter 2
  • Docs »
  • HUNTER Operations Manual »
  • Basic Functions »
  • RIGHT$
  • View page source

RIGHT$¶

Function¶

RIGHT$ returns the last n characters of a given string.

Syntax¶

RIGHT$(“STRING”,N)

where N is the number of rightmost characters to be returned.

Examples¶

RIGHT$("ABCDEF",3)

returns DEF

Remarks¶

Both string and n must be enclosed in parentheses and can be expressions. If length of the string is less than n then the entire string is returned.

If A$ = “ABCDEF” then:

RIGHT$(A$,0) = null string
RIGHT$(A$,20) = ABCDEF
Next Previous

© Copyright

Built with Sphinx using a theme provided by Read the Docs.