Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[CS4][JS]Error : Invoke cell in a Table

Community Beginner ,
Sep 01, 2009 Sep 01, 2009

Hi,

    I am using trail version of IndesignCS4 JavaScript.I have an empty cell in a table.When I am invoking a empty cell in a table using the statement "myCell.lines.length". Obviously there is no lines in the empty cell.But If i am execute alert(myCell.lines.length); It displays 1. Is it bug ? or any other reason?

Please explain me.

Regards

Kumar

TOPICS
Scripting
471
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 01, 2009 Sep 01, 2009
LATEST

It's not a bug. Every text container uses at least 1 line, because it contains at least 1 insertion point.

Interestingly, an empty cell contains one line . . . and zero paragraph!

You may also observe that the single line of an empty container has no character:

myEmptyCell.lines[0].characters.length == 0

(but you have: myEmptyCell.lines[0].insertionPoints.length == 1 )

@+

Marc

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines