Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
for (int i = 0; i < _CoreDoc.Pages.Count; i++)
{
IPXC_Content content = _CoreDoc.Pages[(uint)i].GetContent(PXC_ContentAccessMode.CAccessMode_Readonly);
for (uint c = 0; c < content.Items.Count; c++)
{
if (content.Items[c].Type == PXC_CIType.CIT_XForm)
{
var xFormHandle = content.Items[c].XForm_Handle;
var xFormdata = _CoreDoc.GetXFormByHandle(xFormHandle);
var contentxForm = xFormdata.GetContentEx(PXC_ContentAccessMode.CAccessMode_Readonly);
if (contentxForm != null)
{
// what to do here?
}
}
}
}
In place of the last var keyword there should have been an IPXC_Content interface that would instantly give you an idea on what to do next. Basically the XForm has it's own content that can hold another XForm and so on. So a recursive method would be perfect here.