Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help w/ Displaying Strings in a Form
Message
 
 
À
31/05/2007 17:32:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Divers
Thread ID:
01229697
Message ID:
01229699
Vues:
11
Add EditBox to a form and put code below into the Refresh Method
* Editbox 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
* DisplayData method of the form
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform