>Something like
>
>lnStart = Thisform.Edit1.SelStart
>lcCrLf = CHR(13) + CHR(10)
>
>lnOccurence = OCCURS(lcCrLf, LEFT(Thisform.Edit1.Text, lnStart))
>
>lcCommand = STREXTRACT(lcCrLf + Thisform.Edit1.Text, lcCrLf ,lcCrLf, lnOccurence + 1,2)
>
>
only you Sergey.. only you
cool.. so cool... but a little something leaking... the control of [;] character per line to deal with long commands
now... I'm trying to deal with that
>>
>>for instance:
>>
>>
>>LIST[CR&LF]
>>DISP MEMO[CR&LF]
>>LIST ALL FOR;[CR&LF]
>>empty(client_id)[CR&LF]
>>BROWSE[CR&LF]
>>PACK[CR&LF]
>>
>>
>>on keypress RETURN I'd like to grab the code near to left side and process it.. Exactly as the same behavior of VFP's command line window
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20