Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Override method parameter
Message
De
29/10/2011 05:38:18
 
 
À
28/10/2011 09:06:29
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:
01527606
Vues:
126
>>>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform