Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Infinite loop with pgf.ObjectValid

$
0
0

Why would this result in an infinite loop? I thought that wehn it got to the last Pgf object it should become invalid and stop.

 

    var doc = app.ActiveDoc;

    var pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

    while ( pgf.ObjectValid() ) {

        Console('Hello');

    }

    pgf = pgf.NextPgfInFlow;

 

Thanks,

Mark


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>