Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Screen.Activeform.Name NOT accurate
Message
 
To
06/06/2007 09:16:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01230724
Message ID:
01230911
Views:
28
Hi Tracy

In this type of situation I would pass the info between apps using a field in a DBF.

Bob

>Ok, I didn't do enough research before I posted this message. It turns out that one VFP9 exe is launching another vfp9 exe and checking the form name which has focus in the 2nd exe. This worked in VFP6, but not in VFP9. We are researching to see if there is a global app object in the 2nd exe to work with. Can't pass the value because both may be running continuously at all times and the user may initiate an action in either exe so the 1st exe needs to be able to determine which form in the 2nd exe has focus at any given time (without a rewrite). Both VFP apps were originally in VFP6 and we are recompiling them in VFP9 to distribute as VFP9 apps.
>
>
>>>Over the years we have consistently used _Screen.ActiveForm.Name to determine the current active form. This has worked until recently. Recently, even though another form will actually be ontop and appear to have focus, _Screen.ActiveForm.Name returns the main form. I can only think that a timer may be running which could shift focus back to the mainform somehow. Is there ever a case when _Screen.ActiveForm.Name may be actually WRONG?
>>
>>
>>Tracy,
>>
>>Where do you check _Screen.ActiveForm.Name ?
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Previous
Reply
Map
View

Click here to load this message in the networking platform