Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where can we go for quick answers to vfp basics?
Message
 
To
09/07/1998 06:13:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115619
Message ID:
00115653
Views:
11
Harry,

Here's ahwt I can tell you.

1 How do I force a label to update when it is on the form but not on the page?

You need to THISFORM.Label1.Caption = "The caption you want" whne the label needs to change. If this is data driven I might suuggest that you use a textbox, you can set it to no border and make it use the same colors as the label. If you make it read only then the user cannot edit in it. With a textbox you can set its controlsource to the field you want.

2. I have a simple form setup to ask questions of the user (eg 'Confirm - Exit the Program?')

You need to make the for modal, do this by setting its windowtype property to 1 - modal in the form designer.


3. Why do some combinations throw me out of the system when debugging but not when letting the program run? An example arose in trying to solve the previous question. I figured out the code to release the form on any user selection ("thisform.release") It works. Unless I'm 'tracing' it, in which case, when it gets to the line in question, I get 'The program has performed an illegal operation and will be shut down'. Which, after the first couple of hundred attempts begins to get a trifle tedious…

Tnhis may depend on number of things, among them the version of VFP you are using, the printer driver and video driver you are using. What you are seeing is that when the debugger is running and tracing the code a system error occurs. This is most often a memory conflict of some kind and I would suggest that you;

A - make sure you have the latest version of VFP (that would be having installed SP3 for Visual Studio which you can download from microsoft).

B - if that doesn't fix things then switch your video driver to the generic one that comes with windows and see if the error is gone, if it is then the problem was the video driver.

C - if the video driver is not the problem then try cahnging the printer driver and see if that helps.

4. Why can I run an application (from the project designer) sometimes and not others?!

This may be a situation where you did not exit the application the last time you ran it. In other words the app is already running.
Previous
Reply
Map
View

Click here to load this message in the networking platform