Hi,
Object o = current
int i_offset, i_length
string s_text_rich = richText(o."Object Text")
if (findRichText(s_text_rich, "Start of", i_offset, i_length, true))
{
print "Found"
}
else print "Not found"
SystemAdmin - Tue Dec 14 05:18:10 EST 2010 |
Re: findRichText issue
Your example seems to work if you drop off the richText call when fetching the attribute value, i.e. string s_text_rich = o."Object Text" |
Re: findRichText issue SystemAdmin - Thu Dec 16 08:24:32 EST 2010
Your example seems to work if you drop off the richText call when fetching the attribute value, i.e. string s_text_rich = o."Object Text" Thanks for the reply. That's true, it would work is you do not include the rich text in the string, but that's because you then do not have the rich text tags in the string so the findRichText function works the same ws as a normal contains function. The problem I am having is getting DOORS to understand the rich text tags when using the function findRichText. It does not seem to recognise the tags when they are taken directly from an object as they come out as \b rather than {\\b. Thanks, Simon |