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

Re: iterate all tables in framemaker

$
0
0

table = doc.FirstTblInDoc;

while(table.ObjectValid()){

    row = table.FirstRowInTbl;

    while (row.ObjectValid()) {     

        cell = row.FirstCellInRow;

        while(cell.ObjectValid()){      

            pgf = cell.FirstPgf;

            while(pgf.ObjectValid()){            

                alert(pgf);

                pgf = pgf.NextPgfInFlow;

                }

            cell = cell.NextCellInRow;

            }

       row = row.NextRowInTbl;

    }

    table = table.NextTblInDoc;

}

the result of the above script is infinite loop.. how to i fix that?

 

pls help


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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