Skip to content

Commit b18c7be

Browse files
authored
Merge pull request #5 from Frisle/patch-1
FIX: fixed some typos and syntax
2 parents e8c4102 + 0c8d77c commit b18c7be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/cls/Example/DataStructures.cls

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ ClassMethod GetMonthList() As %List
88

99
ClassMethod MonthListUsage()
1010
{
11+
set sc = $$$OK
1112
set monthList=..GetMonthList()
1213

1314
// get the particular value by index
14-
w "Month N5 is ",$Listget(monthlist,5)
15+
w "Month N5 is ", $Listget(monthList,5)
1516

1617
// work with all entries of the list
1718
set iter=0,id=0
1819
while $Listnext(monthList,iter,month) {
1920
w $seq(id)," month is ",month,!
2021
}
22+
quit sc
2123
}
2224

2325
ClassMethod MonthGlobalSetup(ad)
@@ -29,6 +31,7 @@ ClassMethod MonthGlobalSetup(ad)
2931

3032
ClassMethod MonthGlobalUsage()
3133
{
34+
set sc = $$$OK
3235
set ad=$na(^Month) k @ad
3336
d ..MonthGlobalSetup(ad)
3437

@@ -41,6 +44,7 @@ ClassMethod MonthGlobalUsage()
4144
w monthId," month is ",@ad@(monthId),!
4245
set monthId=$Order(@ad@(monthId))
4346
}
47+
quit sc
4448
}
4549

46-
}
50+
}

0 commit comments

Comments
 (0)