Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting different text in a textbox in a form
Message
 
À
01/04/1999 05:28:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00203752
Message ID:
00204348
Vues:
16
>>I've created a form for prompting different error messages. The form contains a Textbox for different error messages which I want to put for the user.
>>
>>How should I run the form and then put the Value of the Error Messages with my choice? Is it possible? For example err..
>>
>>errform.txtErrmsg.value = "Record not found."
>Hi Gan,
>Joseph and Kenneth already have good suggestions about using textbox and labels. I have another suggestion too :)
>I would suggest using messagebox(). Because unlike additional forms, messagebox() doesn't cause the form's some events (ie: activate event) fire on return :) Reentrant firing events might be other invitation to errors in some cases (ie: lostfocus of activecontrol fires, your form kicks in, gotfocus of control fires on return, or valid event causes another error in between). To my experience, calling messagebox() is harmless compared to calling a new form :)
>Cetin

Cetin,

This is a good thing to be know. I don't think it was an issue in VFP 3.0, but in our conversion to VFP 5.0 it has been a problem (workarounds required at times).

Do you (or anyone else reading) know of a way to make a modal form act like a messagebox? In other words, avoid firing LostFocus, Activate, etc. in the calling form...

Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform