Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The case of the disappearing form name
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
The case of the disappearing form name
Miscellaneous
Thread ID:
00430442
Message ID:
00430442
Views:
41
I want to determine the window state of a form which is not the current form.

I've got 3 forms--the men_code.scx which calls codes.scx, and the current one which is called by codes.scx.

Of the following lines:

cMenu=Men_code.WindowState && this is the form which calls codes which calls the current form
cCall=Codes.WindowState && this is the form which is called by men_code and which calls the current form
cThis=Thisform.WindowState && the current form

The only line that doesn't work is the middle one. I've tried publicizing Codes but that didn't work.

Can anyone think of why Men_code would work but Codes would not? (BTW, the error says "Codes is not an object." I did try changing the name to TEST and COMPONNT, thinking perhaps Codes was a protected word or something--that didn't work either. Also, the codes form does appear in the call stack.

JR
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com
(941) 743-0108
(800) 246-5488
Next
Reply
Map
View

Click here to load this message in the networking platform