S
Scott Metzger
Hi,
I am having some weird behavior when stepping through the following code....
short cellExists;
short rowCount;
vsoShape->RowCount(visSectionProp, &rowCount);
for (int i=numFeatures; i<rowCount; i++)
{
CVisioCell cellValue;
CVisioCell cellLabel;
vsoShape->CellsSRC(visSectionProp, visRowProp + i,
visCustPropsValue, cellValue);
vsoShape->CellsSRC(visSectionProp, visRowProp + i,
visCustPropsLabel, cellLabel);
VBstr vbstrLabel;
VBstr vbstrValue;
cellLabel.getFormula(vbstrLabel);
cellValue.getFormula(vbstrValue);
int iValue = VBstrToInt(&vbstrValue);
}
When I step through the code I get NULLs for my VisioCells and labels
after 5 or 6 times through the loop. However, if I don't have a break
point set and let it just run through it works fine.
Anyone have any ideas?
Thanks,
Scott Metzger
I am having some weird behavior when stepping through the following code....
short cellExists;
short rowCount;
vsoShape->RowCount(visSectionProp, &rowCount);
for (int i=numFeatures; i<rowCount; i++)
{
CVisioCell cellValue;
CVisioCell cellLabel;
vsoShape->CellsSRC(visSectionProp, visRowProp + i,
visCustPropsValue, cellValue);
vsoShape->CellsSRC(visSectionProp, visRowProp + i,
visCustPropsLabel, cellLabel);
VBstr vbstrLabel;
VBstr vbstrValue;
cellLabel.getFormula(vbstrLabel);
cellValue.getFormula(vbstrValue);
int iValue = VBstrToInt(&vbstrValue);
}
When I step through the code I get NULLs for my VisioCells and labels
after 5 or 6 times through the loop. However, if I don't have a break
point set and let it just run through it works fine.
Anyone have any ideas?
Thanks,
Scott Metzger