Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Override method parameter
Message
 
 
To
26/10/2011 11:06:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01527418
Message ID:
01527420
Views:
110
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform