Skip navigation
jlangkamer
Currently Being Moderated

Get Table Continuation Variable from Table Title

Feb 26, 2013 12:46 PM

Hi,

 

I have a table object, and I've determined that the table has a title by finding a valid FirstPgf object.

 

Now I want to check that FirstPgf object to see if the system variable, Table Continuation, is there.

 

I suspect this involves getting the paragraphs text items, specifically the constant FO_Var. But I don't know how to do it.

 

Thanks for the advice.

 

Jason

 
Replies
  • Currently Being Moderated
    Feb 26, 2013 1:32 PM   in reply to jlangkamer
    #target framemaker
    
    var doc = app.ActiveDoc;
    // Cursor in the table title paragraph.
    var pgf = doc.TextSelection.beg.obj;
    
    // Get a list of the variables in the paragraph.
    var textList = pgf.GetText (Constants.FTI_VarBegin);
    for (var i = 0; i < textList.length; i += 1) {
        var variable = textList[i].obj;
        // Display each variable's format name.
        alert (variable.VarFmt.Name);
    }
    

     

    Rick

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points