Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter List Bug
Message
From
09/04/2002 18:56:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Parameter List Bug
Miscellaneous
Thread ID:
00642946
Message ID:
00642946
Views:
60
In VFP 6 if you place a comment at the top of a method in class and then drop the object onto a form, when you add code to the method the classes’ parameters are/were automatically placed at the top of the method.

Now in VFP 7 the parameter list only appears if the classes’ parameter list (the LPARAM statement) is the first line. Anyone figure out a way to get around this bug?

Example Class Method in Photo Control

PROCEDURE deletephoto
******************************************
* Deletes Attached Photo
******************************************
LPARAMETERS tlForce
LOCAL lcPhotoFile
* Get photo path and file
lcPhotoFile = THIS.GetPhotoFileName()
* Check to see if the file exists
IF FILE(lcPhotoFile)
* Confirm Deletion
ELSE
* No photo file found to delete
ENDIF
ENDPROC

Place the Photo Control on a form and open the DeletePhoto method. No parameter list. Delete the comments at the top, now you get the list.

This one cost me some time!

Rich
Next
Reply
Map
View

Click here to load this message in the networking platform