THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2005 at 11:13, xxxxxxxx wrote:
Quote: Originally posted by David O Reilly on 21 December 2002
>
> * * *
>
> Do you remember SpeeDisplay? and the tag issue? :o) this code below?
>
>
\>
\> GetActiveTagR(op)
\> {
\> while (op)
\> {
\> var atag=GetActiveTag(op);
\> if (atag)
\> return (atag);
\>
\> atag=GetActiveTagR(op->GetDown());
\> if (atag)
\> return atag;
\>
\> op=op->GetNext();
\> }
\>
\> return NULL;
\> }
\>
\> GetActiveTagA(doc)
\> {
\> return GetActiveTagR(doc->GetFirstObject());
\> }
\>
\> main(doc,op)
\> {
\> var atag=GetActiveTagA(doc);
\> if (atag)
\> {
\> var ob=atag->GetObject();
\> println("Active Tag on Object "+ob->GetName());
\> }
\> }
\>
\>
>
> That is also how to do this one ;-)
>
> The GetActiveTagR function recursively looks for an active tag, you can change it to find anything you like, or do anything you want :o)
>
>
>
>
> * * *
Weird, but where is the GetActiveTag function being called in line 5 from the GetActiveTagR function???