sbmisc.txt

来自「smallbasic for linux」· 文本 代码 · 共 92 行

TXT
92
字号
Miscellaneous____________________________RANDOMIZE [int]Seeds the random numbergenerator____________________________RNDReturns a random numberfrom the range 0 to 1____________________________LBOUND(array [, dim])UBOUND(array [, dim])Returns the lower/upperbound of the 'array'The parameter 'dim' is thearray dimension whose boundis returnedExample:DIM v1(-4 TO 7)DIM v2(1 TO 2, 3 TO 4)? LBOUND(v1):REM -4? UBOUND(v1):REM 7? LBOUND(v2):REM 1? LBOUND(v2,2):REM 3____________________________CINT(x) - convert x to  32b integerCDBL(x) - convert x to  64b real number____________________________PEN ON|OFFEnables/Disables thePEN/MOUSE mechanism.____________________________PEN(0..14)Returns the PEN/MOUSE data.Values:0 - true (non zero) if there  is a new pen or mouse  event1 - PEN: last pen-down x;  MOUSE: last mouse button  down x 2 - Same as 1 for y3 - true if the PEN is down;  mouse left-button is  pressed4 - PEN: last/current x,   MOUSE: the current x  position only if the left  mouse button is pressed  (like PEN is down)5 - Same as PEN(4) for yMouse buttons (non PalmOS):10 - current mouse x pos.11 - current mouse y pos.12 - true if the left mouse  button is pressed13 - true if the right mouse  button is pressed14 - true if the middle  mouse button is pressed____________________________PAUSE [secs]Pauses the execution for aspecified length of time, oruntil user hit the keyboard.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?