Skip to content

Commit b4e5d72

Browse files
committed
Minor fix
1 parent e8578a1 commit b4e5d72

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dynamic_array_class/Test.asp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ da.add_element("A")
2222
Response.Write("Elements inside: ")
2323
da.write_array()
2424
25+
Response.Write("--- Get array dimension --- <br>")
26+
Response.write("Array dimension: " & da.get_dimension() & "<br>")
27+
2528
Response.Write("--- Get element with index 1 --- <br>")
2629
2730
Response.Write("Element: ")

Dynamic_array_class/dArray.class.asp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class dArray
2828
2929
'Funtion to get array dimension'
3030
Public Function get_dimension()
31-
get_dimension = array_dimension
31+
get_dimension = array_dimension + 1
3232
End Function
3333
3434
'Funtion to get the entire array'

0 commit comments

Comments
 (0)