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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only