This.Parameters.Count This.Parameters.GetKey(1) This.Parameters(m.lcKey) This.Parameters.Item(1) m.lnCount m.lcKey m.lnValueK m.lnValueNAfterwards, the program can be resumed a line at a time, and what I observed is that the variables got the expected values but all others watches could not be evaluated, with the exception of This.Parameters.Count that evaluated correctly to 3.
m.loObject = CREATEOBJECT("someClass") m.loObject.SetParameter("id", 1) m.loObject.SetParameter("model", "Model name") m.loObject.SetParameter("description", "Model description") m.loObject.someMethod() DEFINE CLASS someClass as Custom Parameters = .NULL. FUNCTION SetParameter LPARAMETERS tcId, teValue IF ISNULL(This.Parameters) This.Parameters = CREATEOBJECT("Collection") ENDIF This.Parameters.Add(m.teValue, m.tcId) ENDFUNC FUNCTION someMethod SET STEP ON m.lnCount = This.Parameters.Count m.lcKey = This.Parameters.GetKey(1) m.lnValueK = This.Parameters(m.lcKey) m.lnValueN = This.Parameters.Item(1) m.lcDummy = "" && just to show the watches in the debugger ENDFUNC ENDDEFINE