Skip to content

Commit d221f44

Browse files
Update Usage04.md
1 parent 5810172 commit d221f44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tutorials/Usage04.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ and all other size ranges have two-dimensional array values.
4040
Since two-dimensional tuples do not exist in Python, it gets converted to a tuple-of-tuples. Often however, you will want to pass a range as a one-dimensional tuple. Consider for example the built-in Python function `sorted`. If you call this function on the range "A1:C1" it returns the same value as is passed in:
4141

4242
```
43-
?Py.Str(Py.Call(Py.Builtins, "sorted", Py.Tuple(Range("A1:C1").Value2)))
43+
?Py.Str(Py.Call(Py.Builtin, "sorted", Py.Tuple(Range("A1:C1").Value2)))
4444
[(3.0, 1.0, 2.0)]
4545
```
4646

@@ -63,7 +63,7 @@ To do this, you can convert the 1x3 two-dimensional VBA array to 3-element one-d
6363
```
6464
?Py.Str(NDims(Range("A1:C1").Value2, 1))
6565
(3.0, 1.0, 2.0)
66-
?Py.Str(Py.Call(Py.Builtins, "sorted", Py.Tuple(NDims(Range("A1:C1").Value2, 1))))
66+
?Py.Str(Py.Call(Py.Builtin, "sorted", Py.Tuple(NDims(Range("A1:C1").Value2, 1))))
6767
[1.0, 2.0, 3.0]
6868
```
6969

@@ -96,7 +96,7 @@ So how do you get the value out of Python and into VBA? The key is to convert it
9696
or in the VBA code by calling the Python conversion function directly on the returned object:
9797

9898
```
99-
?Py.Var(Py.Call(Py.Builtins, "float", Py.Tuple(Py.Eval("norm.cdf(0.0)", locals))))
99+
?Py.Var(Py.Call(Py.Builtin, "float", Py.Tuple(Py.Eval("norm.cdf(0.0)", locals))))
100100
0.5
101101
```
102102

0 commit comments

Comments
 (0)