Add EditBox to a form and put code below into the Refresh Method
DODEFAULT()
THIS.SelStart = LEN(THIS.Value)
NODEFAULT
THIS.SetFocus()
Create DisplayData() method on the form with code below and call it with data to display as parameter
LPARAMETERS tcMsg
LOCAL lcCrLf
lcCrLf = CHR(13) + CHR(10)
Thisform.edtDispLog.Value = Thisform.edtDispLog.Value + lcCrLf + tcMsg
Thisform.edtDispLog.Refresh()
>Basically I'm writing a program that listens to a comm port and displays what is being recieved on to the form.
>
>How would I go about doing this? I'm new to foxpro and was wondering where I would start. Basically I know how to send iformation to a LABEL by doing this..
>
>thisform.LABEL.caption = commPortRecieved
>
>But what if I wanted to display the information in a edit box? or something like an edit box? can someone please give this noob some insight on how to do this w/out using a LABEL. Because I want to fill out the text box as its listening and I dont think a label will be appropriate for this.
--sb--