Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Override method parameter
Message
 
 
À
26/10/2011 11:06:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01527418
Message ID:
01527420
Vues:
109
This message has been marked as the solution to the initial question of the thread.
It looks like SetFormat is reserved word. You shoul come up with another name for the method.

>
>I am creating custom class in the project using class designer
>
>here is simulator of it
>
>
>Public o
>o = Createobject("myclass")
>Define Class myclass as Custom
>	Procedure SetFormat(myparameter1 as String,myparameter2 as Integer)
>		? myparameter1,myparameter2	
>	Endproc 
> 	Procedure SetSomething(myparameter1 as String,myparameter2 as Integer)
> 		? myparameter1,myparameter2	
> 	Endproc 
>Enddefine 
>
>
>Now, in the command window or in anyplace of my class or my project if I tried to do this :
>
>o.SetFormat( && the intellisense shows in light yellow eformat as parameter list
>
>
>if I do this
>
>o.SetSomething( && the intellisense shows my correct parameter list
>
>
>
>I had found that there is SetFormat method in vfp (mark SetFormat and press F1)
>
>Is this public method? cannot I show my parameter list.
>
>Thanks.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform