>>You can also try ALINES(). It may be even easier and faster.
>>
>>lnStart = Thisform.Edit1.SelStart
>>lcCrLf = CHR(13) + CHR(10)
>>
>>lnOccurence = OCCURS(lcCrLf, LEFT(Thisform.Edit1.Text, lnStart))
>>
>>ALINES(laLines, Thisform.Edit1.Text)
>>lcCommand = laLines[lnOccurence + 1]
>>
>>
>
>One time - it's a typo.
>
>Two times - it's a typo.
>
>Three times - it's an ignorance.
Two guys here are exempt from spell sampling (where the results eventually go to
http://www.ndragan.com/lange/spellmain.html). Neither Sergey nor Claudio are among them, because non-anglophones are not in the same league with the natives, just can't compete...