>>How to chk whether _Screen Or Form ?? All properties are same... How i can chk that passed object is screen or form ??
>>
>>TIA...
>
>
>
>Hey easy!
>
>make a new procedure file.
>
>* a.prg
>Lparameter cObject
>Wait Window NoWait iif(ComObj(_SCREEN, cObject), "What a pity, the system is going to crash now!! -_-", ;
>"Form passed OK!")
>
>
>if you pass the parameter like this:
>
>Do A.prg with NVL(.NULL., _SCREEN)
>
>it will crash after finish execution!
>
>SO, Simply Pass:
>
>Do A.prg With NVL(.NULL., varForm)
>
>It will crash the application if pass _SCREEN on value! ^_~
>
>Surely ppl don't pass _SCREEN as parameters.....
>
>ROFL! ^0^ Finish Joking!
Thnks for your reply...
Pls chk my gradient class in files section, where _screen is passed as a parameter to show gradient effect on screen.. If a form is passed as a parameter then it shows effect on form...
Nowadays u never know what can be passed as a parameter !!
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement