Integrated Vision / How to get the data of each individual object from PatMax 1-10

Hello! I have some problems with the data transfer to Rapid from PatMax 1-10
Before that, everything was ok with the single object (regular PatMax), it was like that:

CamReqImage camera1;
CamGetResult camera1,cameraResults\MaxTime:=2;
wobjCamera.uframe:=wobjRobot.uframe;
wobjCamera.oframe:=cameraResults.cframe;

pGripPart.trans.x := cameraResults.cframe.trans.x;

But now, how can i get the data of every single x contained in the cframe.trans.x ?
image.png

You can cycle the results in a while loop:

CamReqImage camera1;

WHILE CamNumberOfResults(camera1) > 0 DO
CamGetResult camera1,cameraResults\MaxTime:=2;

wobjCamera.uframe:=wobjRobot.uframe;
wobjCamera.oframe:=cameraResults.cframe;

pGripPart.trans.x := cameraResults.cframe.trans.x;

ENDWHILE

When there is no more results, the error ERR_CAM_NO_MORE_DATA is generated.