-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLEARNERS_ARRAY.pbi
More file actions
48 lines (42 loc) · 1.1 KB
/
LEARNERS_ARRAY.pbi
File metadata and controls
48 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Dim classNumberBoys.s(25)
Dim classNumberGirls.s(25)
For x.b = 0 To 24
classNumberBoys(x) = "B" + Str(x + 1)
classNumberGirls(x) = "G" + Str(x + 1)
;Debug classNumberBoys(x)
;Debug classNumberGirls(x)
Next
;will be coming from the interface
desiredNumberBoys = 20 - 1
NewList stuList.s()
For x.b = 0 To desiredNumberBoys
AddElement(stuList()) : stuList() = classNumberBoys(x)
Next
;will be coming from the interface
desiredNumberGirls = 20 - 1
For x.b = 0 To desiredNumberGirls
AddElement(stuList()) : stuList() = classNumberGirls(x)
Next
; iteration = 0
; ForEach stuList()
; ;Debug stuList()
; iteration = iteration + 1
; iteration2 = iteration - 1
; ;Debug iteration2
; SelectElement(stuList(),iteration2)
; ;Debug "Element selected: " + Str(SelectElement(stuList(),iteration2))
; ;Debug ""
; If stuList() = "B4"
; DeleteElement(stuList())
; Break
; EndIf
; Next
;
; ForEach stuList()
; Debug stuList()
; Next
;
; ;Debug ListIndex(stuList())
; Debug ListSize(stuList())
; IDE Options = PureBasic 5.00 (Windows - x64)
; EnableXP