Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to chk whether _Screen Or Form ??
Message
From
30/08/1999 04:57:10
 
 
To
28/08/1999 10:02:13
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00258801
Message ID:
00259076
Views:
16
>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!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform