CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
16
Task/Enumerations/BASIC/enumerations.bas
Normal file
16
Task/Enumerations/BASIC/enumerations.bas
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
REM Impossible. Can only be faked with arrays of strings.
|
||||
OPTION BASE 1
|
||||
DIM SHARED fruitsName$(1 to 3)
|
||||
DIM SHARED fruitsVal%( 1 to 3)
|
||||
fruitsName$[1] = "apple"
|
||||
fruitsName$[2] = "banana"
|
||||
fruitsName$[3] = "cherry"
|
||||
fruitsVal%[1] = 1
|
||||
fruitsVal%[2] = 2
|
||||
fruitsVal%[3] = 3
|
||||
|
||||
REM OR GLOBAL CONSTANTS
|
||||
DIM SHARED apple%, banana%, cherry%
|
||||
apple% = 1
|
||||
banana% = 2
|
||||
cherry% = 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue