Home > Uncategorized > Getting a particular line form AOT string value

Getting a particular line form AOT string value

static void Job4(Args _args)

{

    TreeNode tn;

    XInfo xInfo = new XInfo();

    str source, sourceLine;

    Container c;

    ;

    tn = xInfo.findNode(@”\Data Dictionary\Tables\CustInterestJour\Methods\paymentBankAccountId”);

    source = tn.AOTgetSource();

    c =str2con(source,’\n’);  

    // I want to get the 8th line (or line n) of this source string

    sourceLine = conpeek(c,8);

    info(source);

}

  1. No comments yet.
  1. No trackbacks yet.

Leave a comment