Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter List Bug
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Parameter List Bug
Divers
Thread ID:
00642946
Message ID:
00642946
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform