* * * * * * * * * * * * * * * * * * * * * * * Deletes Attached Photo * * * * * * * * * * * * * * * * * * * * * * LPARAMETERS tlForce>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.
> 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>