Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOUND A BUG - Code being Moved
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
FOUND A BUG - Code being Moved
Miscellaneous
Thread ID:
00830011
Message ID:
00830011
Views:
64
VFP is moving code!!
Occurs in both VFP7 and VFP8

Steps to reproduce:

1. Create a classlib called "Test" with a label in it called "lblTest"
2. Add a method called "Clicked"
3. Make the Click event (not Clicked) hidden and add this line of code:
This.Clicked()
Close the class designer, and

1. Create a form
2. Drag a lblTest onto the form
3. Double Click the label and in the Clicked method add:
WAIT WINDOW "Label Clicked"
4. Run and verify the wait window fires


Next
1. Reopen the Class and make the Click event Public
2. Close the class designer
3. Re-Open the form and the Label's code widow

Code had been moved from Clicked to Click

I get the same result even if I use some other method name other
than Clicked.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform