Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

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)
    [ Image Removed |../../index.htm#lansa/jsoneng01_0040.htm]