Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To: Add code to _Screen.Hide and _Screen.custom met
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00814430
Message ID:
00850780
Vues:
14
Could you share how you got this to work? I take that code and it errors every time on "Unknown member oScr". I even went back to the help and put in the exact example with no luck either...

>It works thanks, now I got to polish it to work in a professional manner. Thanks a lot.
>
>>Hi,
>>
>>>Could anybody let me know how I can add code to the _SCREEN.Hide() methods.
>>>Also I would like to create custom methods for the _SCREEN.
>>
>>The VFP help entry for ' _SCREEN Properties,Methods and Events' gives an example for both of the above. Essentially:
>>
>>
>>_Screen.NewObject("oSH","ScreenHook","myScreen.prg")
>>
>>*myScreen.prg
>>DEFINE CLASS ScreenHook as Custom
>>  oScr = _SCREEN
>>  PROC oScr.Hide()
>>    * whatever
>>  ENDPROC
>>  PROC oScr.CustomMethod
>>    * whatever
>>  ENDPROC
>>ENDDEFINE
>>
>>
>>HTH,
>>Viv
Rod Lewis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform