Line num insert

  /// <summary>

    /// insert

    /// </summary>

    public void insert()

    {

        if (!this.LineNum)

        {

            this.LineNum = this.getMaxLineNum() + 1;

        }

        super();

    }


    /// <summary>

    /// Get maximum line number

    /// </summary>

    /// <returns>

    ///Line number

    ///</returns>

    public LineNum getMaxLineNum()

    {

        Table    tableBuffer;

        select maxof(LineNum) from tableBuffer;


        return tableBuffer.LineNum;

    }



Note: Data type is real and Edt use- "LineNum"

Comments

Popular posts from this blog