You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

[ |../../index.htm#lansa/jsoneng01_0040.htm]
You are here:

Read…AtIndex

Read..AtIndex extracts a value from an array element with the specified index.
The "current" element must be an array.

  • Declare an XPRIM_JsonObject to hold the contact number
    Define_Com Class(#XPRIM_JsonObject) Name(#ContactNoItem)
  • Get the object at index 1
    #ContactNoItem.Refer To(#Reader.ReadObjectAtIndex(1))
  • Pass the object to another method
    #AnotherComponent.ProcessContactNo Object(#ContactNoItem)
    [ |../../index.htm#lansa/jsoneng01_0040.htm]
  • No labels