ImgControl_SetDocument

Assign an image document to a ImgControl form object.
ImgControl_SetDocument(controlName; imgDocRef; frameIdx) ➔ success
controlName Text The name of the ImgControl form object.
imgDocRef Text The image document reference
frameIdx Longint The image frame index.
success Longint Completion status: 1 on success, 0 otherwise.

Assign an image document to the ImgControl form object named controlName.

The image document and frame to be assigned to the control are specified by imgDocRef and frameIdx respectively.