Professional Web Applications Themes

How to Find the Line # in a Given Paragraph - Macromedia Director Basics

Hello, Is there a way to find out the line number of the first line in a given paragraph? For example, I'm trying to find the line number of a certain piece of text so that I can use it with linePosToLocV to tell me how far down the text member the line actually is. Instead of looking at each line individually, I know that all I need is say the first line of paragraph 5. Without actually counting the number of lines to get to paragraph 5, is there a way to find out which line this is? From ...

  1. #1

    Default How to Find the Line # in a Given Paragraph

    Hello,

    Is there a way to find out the line number of the first line in a given
    paragraph?

    For example, I'm trying to find the line number of a certain piece of text
    so that I can use it with linePosToLocV to tell me how far down the text
    member the line actually is. Instead of looking at each line individually, I
    know that all I need is say the first line of paragraph 5. Without actually
    counting the number of lines to get to paragraph 5, is there a way to find
    out which line this is?

    From what I can tell I can only use a line number with linePosToLocV, not
    something like paragraph[5].line[1].

    Thanks for any input,


    Julia


    Julia Ouellette Guest

  2. #2

    Default Re: How to Find the Line # in a Given Paragraph

    Sorry about my prior question - I did not realize that for a text cast
    member the number of lines equals the number of paragraphs. Essentially what
    I am trying to do is find the locV of a specific line of text in a text cast
    member. Is there a way to find out what the locV is of a particular line of
    text in a text member?

    Thanks,

    Julia


    Julia Ouellette Guest

Similar Threads

  1. First line in paragraph
    By TSemmes in forum Macromedia Dynamic HTML
    Replies: 3
    Last Post: February 23rd, 04:20 PM
  2. Replies: 1
    Last Post: January 31st, 07:44 PM
  3. line, paragraph and char
    By kiaoraFiona webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 1
    Last Post: November 14th, 11:49 AM
  4. Why can't it find the BeginTransaction line????
    By Mamcx in forum ASP.NET General
    Replies: 1
    Last Post: July 31st, 11:36 PM
  5. Director Mx basic : how to find line that contains specific word
    By SEB in forum Macromedia Director Lingo
    Replies: 3
    Last Post: July 29th, 09:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139