Local Command
Local
This content is checked by fx-9860GII (OS 2.04).
This is on-going project, any changes may be made.
Model
fx-9860G Series
Syntax
Local <small letter Variable 1>,<small letter Variable 2>, ... , <small letter Variable n>
Key Press
Local: [F3](CMD) -> [down]/[up] -> [.](.:Local)
Function
- <small letter Variable n> can be local variable in the program file where Local command is used.
- Local command sets 'passed values' combined with exteded Prog comamnd.
Description
- All variables are Global, which are all the variables are shared in all program files. This is comatible with original Casio Basic. If user wants to use some Local variables which are not shared with other program files, use Local command to set only small letter variables whatever the user wants to use.
- Calls sub-routine program by Prog "<file name>",<Variable 1>,<Variable 2>, ... ,<Variable k> in main program, and Local <small letter Variable 1>, ... <small letter Variable k>, ... <small letter Variable n> in the called program, then this combination of Prog and Local commands can set those k pcs variables to same values as <Variable 1> to Variable k> subsequentoy. Such combination of extended Prog and Local commands allow user to pass values to deferent program file.
Example of value passing;
Main program: MAIN
"Press any key"
Prog "SUB",Getkey1
Sub-routine program; SUB
Local k
Switch k
Case 72
"One"
Break
Case 62
"Two"
Break
Case 52
"Three"
Break
Default
"Else"
SwitchEnd
where value of Getkey1 is passed to the program SUB and the variable k is local.
Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com All Rights Reserved.
- 関連記事
-
-
: Multi-Statement Command & Display Suppression 2014/08/01
-
Prog Command (C.Basic) 2014/08/01
-
Local Command 2014/08/01
-
If Statement (C.Basic) 2014/08/01
-
Double and Integer Variables 2014/08/01
-