Community

How can I modify the value of yArray?

Hi

I want to use string of repeat group to split rows, So I use RowSplitters method

let yArray = SearchElements.RepeatingGroup.AllInstances.CharacterString.GetYArray(0);
RowSplitters( yArray,true,false);

But some words will be cut.
I need to offset the yArray simultaneously, just like "CharacterString.Rect.Top-10dt", So I try to modify

let yArray = SearchElements.RepeatingGroup.AllInstances.CharacterString.GetYArray(0)-10dt;
RowSplitters( yArray,true,false);

There is a error of wrong parameters for operator "-"

How can I modify the value of yArray?

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Permanently deleted user
    Hello,

    YArray is an IntArray predifined type, you can view its description in FlexiLayout HelpFile:FlexiLayout Language-Predifined Types-IntArray. According to description it doesn't support operators such as + or -.

    If you are using YArray to find rows, then you need to make sure that elements that form YArray, capture each row correctly.

    Best Regards,



    0
  • Avatar
    Permanently deleted user
    Hi Timur

    I use the small white gap above CharacterString and replace it,

    let yArray = SearchElements.RepeatingGroup.AllInstances.whitegap.GetYArray(0)finally

    It can solve this problem now, thanks!
    0

Please sign in to leave a comment.