RETURNS THE CAPTION OF THE SYSTEM OBJECT NUMBER N
ACTION
The function CAPTION$(N) returns the caption of the system object number N.
The system object N must be one of the following types: BUTTON, ALPHA, FORM, CHECK, OPTION, SUB_MENU.
Remark 1: if no caption has been allocated to system object number N, CAPTION$(N) returns "" (the empty string).
Remark 2: the keyword CAPTION$ ends by '$' because the returned value is a string.
SYNTAX:
Result$=CAPTION$(N)
USE ERROR EXAMPLE
rem create a BUTTON
button 1
rem give it a caption
caption 1,"Compute"
rem print this caption
print
print
print caption$(1)
CAPTION$()
CAPTION$(N)
SEE ALSO
BUTTON
ALPHA
FORM
CHECK
OPTION
SUB_MENU