finding a characters number in a text field

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default finding a characters number in a text field

    charPosToLoc uses a number to define which character in the text field you are querying.

    I want to know what number char[x] of line[y] is in a text field.

    any ideas?




    EdMX webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. 80020005 problem with Access field Types (text vs. number)
      I'm baffled... I'm just trying to update data in an access db. All works well when I have text and memo fileds only. When I change one of the...
    2. Maximum number of characters in a field?
      I won't give all the boring information, but here's the skinny of what I'm trying to find out. I have a dynamic text field and (for my own...
    3. text of a field member to file --> ugly characters instead of RETURN
      Hello, I have stored text within a field member. The text is line by line, that is to say after each line a RETURN. When writing this into a...
    4. Increment a number in a text field
      I'm having problems getting a text field to automatically increment, exp. when you add a record to a form, it should automatically give a new id...
    5. Finding non-printing characters in data
      HP-UX 11.0 IDS 9.21.HC4 Just wondering if there is a simple way to find non-printing characters embedded in char fields. I have tried to...
  3. #2

    Default Re: finding a characters number in a text field

    > I want to know what number char[x] of line[y] is in a text field

    totalchars = member("mytext").line[1..y- 1].char.count + x


    or


    totalchars = the number of chars in (line 1 to y - 1 of
    member("mytext").text) + x
    JB Guest

Posting Permissions

  • You may not post new threads
  • You may 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