if i have this text
INPUT STRING: شمس
LOOK-UP WORD: $ms
SOLUTION 1: ($amasa) [$amas-u_1] $amas/VERB_PERFECT+a/PVSUFF_SUBJ:3MS
(GLOSS): + be headstrong + he/it <verb>
SOLUTION 2: ($amisa) [$amis-a_1] $amis/VERB_PERFECT+a/PVSUFF_SUBJ:3MS
(GLOSS): + be sunny + he/it <verb>
SOLUTION 3: ($am~asa) [$am~as_1] $am~as/VERB_PERFECT+a/PVSUFF_SUBJ:3MS
(GLOSS): + expose to the sun + he/it <verb>
SOLUTION 4: ($amos) [$amos_1] $amos/NOUN
(GLOSS): + sun +
SOLUTION 5: ($amos) [$amos_2] $amos/NOUN_PROP
(GLOSS): + Shams +
INPUT STRING: البحرين
LOOK-UP WORD: AlbHryn
SOLUTION 1: (AlbaHorayoni) [baHorayoni_1] Al/DET+baHorayoni/NOUN_PROP
(GLOSS): the + Bahrain +
SOLUTION 2: (AlbaHorayoni) [baHor_1] Al/DET+baHor/NOUN+ayoni/NSUFF_MASC_DU_ACCGEN
(GLOSS): the + sea + two
and i want to take the solutions and put them in a popup menu
for example for the first INPUT STRING: شمس
the options should be
1.$amasa
2.$amisa
3.$am~asa
4.$amos
5.$amos
when user right click on that word the five options should appear
i tried to search the text to find the first option but how can i put it in the popup menu and how can i find other solutions
this is the code i used
Private Sub FindText(ByVal start_at As Integer)
Dim pos As Integer
Dim target As String
target = "SOLUTION"
pos = InStr(start_at, txtBody.Text, target)
If pos > 0 Then
'We found it.
TargetPosition = pos
txtBody.SelStart = TargetPosition + 12
txtBody.SelLength = Len(target) - 2
txtBody.SetFocus
Else
'We did not find it.
MsgBox "Not found."
txtBody.SetFocus
End If
End Sub
how can i stop seleting until i reach ')'
anybody help