Results 1 to 5 of 5

Thread: [RESOLVED] help to chang my code....please

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    131

    Resolved [RESOLVED] help to chang my code....please

    I have this code to search a text file and get some information which are between two plus signs and it need some changes to get the exact information that I need

    VB Code:
    1. If UCase(Left(tmp(x + 1), 12)) = "     (GLOSS)" Then
    2.                 gloss = Split(tmp(x + 1), "+")
    3.                 sLine = sLine & " (" & Trim(gloss(1)) & ");"   ' here we add () for the traslation
    4.   Else
    5.                 sLine = sLine & Left(Words(1), InStr(Words(1), ")") - 1) & ";"
    6.  End If

    If this was a part of the text file

    (GLOSS): with/by + the + cooperation +
    .
    .

    (GLOSS): + with +
    .
    .
    (GLOSS): the + collective + [fem.sg.]
    .
    .
    (GLOSS): you [masc.sg.] + be taken/be adopted +


    What I need is to get is the info between the last two + signs
    It means I need the word red color
    Cooperation
    with
    collective
    be taken/be adopted

    and this code gives me the first words between + signs which is wrong n the first line
    the
    with
    collective
    be taken/be adopted
    Last edited by om-yousif; Oct 12th, 2006 at 03:56 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width