Hi,
Maybe you can try to use the GetName method derived from PageBase class like below.
foreach(gp in Project.GraphPages)
{
int TEST = vsGraphs.GetSize();
if(TEST>0)
{
for(int n = TEST-1 ;n>=0; n--)
{
string strName;
bool bRet = gp.GetName(strName);
if(bRet && (strName == vsGraphs[n]))
{
printf("*");
gp.Destroy();
}
}
}
}
This prototype derived from OriginObject class can also be used, but need to assign to a string variable.
foreach(gp in Project.GraphPages)
{
int TEST = vsGraphs.GetSize();
if(TEST>0)
{
for(int n = TEST-1 ;n>=0; n--)
{
string strName = gp.GetName();
if(strName == vsGraphs[n])
{
printf("*");
gp.Destroy();
}
}
}
}
Penn