We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7954c commit b117991Copy full SHA for b117991
src/iop/cls/IOP/Message.cls
@@ -34,9 +34,10 @@ Method GetNextIndex(
34
ByRef pStatus As %Status = {$$$OK}) As %String
35
{
36
Set f=$F(pPath,"()") If 'f Set pStatus=$$$ERROR($$$EnsErrGeneral,"Can't iterate on no-array type '"_pPath_"'") Quit ""
37
- if pIndex="" Set pIndex=1
+ if pIndex="" Set pIndex=0
38
Set tValue = ..GetValueAt($EXTRACT(pPath, 1, $LENGTH(pPath)-2))
39
- if pIndex>$LENGTH(tValue) Quit ""
+ Set builtins = ##class(%SYS.Python).Builtins()
40
+ if pIndex>=builtins.len(tValue) Quit ""
41
Quit pIndex+1
42
}
43
0 commit comments