Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Override method parameter
Message
From
29/10/2011 05:38:18
 
 
To
28/10/2011 09:06:29
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01527418
Message ID:
01527606
Views:
125
>>>>>It looks like SetFormat is reserved word. You shoul come up with another name for the method.
>>>>
>>>>I solved the problem using SetFormat_() , no big deal. but I just want to add this info :
>>>>
>>>>Other than that SetFormat is reserved word (which is true) but it seem that is not the only reason
>>>>
>>>>If I used a procedure name ClearData() or or Setfocus() the parameter displayed by the intellisense is wrong.
>>>>
>>>>While if I used Setup() or SetVar() which are also reserved word, the parameter displayed by the intellisense is correct.
>>>>
>>>>There is something else effecting on the intellisense.
>>>
>>>SetFormat is a VFP9 function, check with the updated help at http://vfpx.codeplex.com/wikipage?title=VFP%209%20SP2%20Help%20File&referringTitle=Home
>>
>>Thank you for the link for new updated help file.
>>
>>Even in the updated help they mention it as (Method, Reserved word), not as Function, If by function you mean like LEN(), well, SetFormat() return nothing and cannot be used.
>
>In my head, a method and a function is the same, although in reality they are not. Sorry for the mixup.

A traditional vfp programmer thinking :). Same here. Class Method & Procedure & Function all can be used to return value.
Previous
Reply
Map
View

Click here to load this message in the networking platform