Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

count line in memo(multi line text)

Discussion in 'Information Technology' started by yousef, Jul 28, 2006.

  1. yousef

    yousef
    Expand Collapse
    Guest

    I want cod of(count line in memo text(multi line text) )
     
  2. Loading...

    Similar Threads Forum Date
    Sikh News An undiscovered country (The Star Online) Breaking News May 14, 2006
    Sikh News Workplace Law Jacqueline McManus (Monterey County Herald) Breaking News May 14, 2005
    Ashdoc's Movie Review---The Accountant Theatre, Movies & Cinema Oct 21, 2016
    Gurmat Vichaar | Futility Of Counting Paaths | April 12, 2016 Gurmat Vichaar Apr 23, 2016
    wolf count Blogs Oct 17, 2015

  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    Since lines are separated by a combination of Carriage Return/Line Feed
    (Chr$(13) & Chr$(10), in that order), you can use the following:

    (Len([MyMemoField]) - Len(Replace([MyMemoField], Chr$(13) & Chr$(10),
    "")))/2



    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "yousef" <yousef@discussions.microsoft.com> wrote in message
    news:A1D3DBC0-92FB-44A2-A167-9A9B386F24B6@microsoft.com...
    > I want cod of(count line in memo text(multi line text) )
     
  4. Joseph Meehan

    Joseph Meehan
    Expand Collapse
    Guest

    yousef wrote:
    > I want cod of(count line in memo text(multi line text) )


    Remember that "lines" are defined with a carnage return and line feed.

    The lines displayed at any given time may include wrapped lines that
    depend on the width of the control in which they are being displayed.

    --
    Joseph Meehan

    Dia duit
     

Share This Page