I am trying to add "objID" in front of each Object Text. However, I had to search for the string "objID" before placing the string. |
Re: How to skip ONLY an OLE object in an Object Text? |
Re: How to skip ONLY an OLE object in an Object Text? I'm not sure if I understand what you try to do, but this function will check if a string only contains OLE and nothing else. Note that blank links are ignored.
bool onlyOle(string s)
{
RichText rt
bool b
b = false
for rt in s do
{
if ( !rt.isOle )
{
return(false)
}
b = true
}
return(b)
}
|
Re: How to skip ONLY an OLE object in an Object Text? I guess normally most objects will already have the objID so this will speedup searching a lot. Regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |