[↑]
SmileBASIC4 Replica Reference
LAST
Return the subscript number at the end of a string or array

LAST(String)
LAST(Array)

Argument

String or Array

String or array to check for the end

Return Value

Subscript number at the end

・For both strings and arrays, return the value obtained by subtracting 1 from the return value of the LEN function.

Example

DIM X[10]
FOR I=0 TO LAST(X)
 X[I]=I
NEXT
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the official reference site of the SmileBoom Co.Ltd. that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it. For automatic update, contents may become improper.
Please confirm the correct content in an official site.

June 3, 2020
by mim
OK
|