Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set _screen.activeform in code
Message
From
02/12/2002 09:44:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Set _screen.activeform in code
Miscellaneous
Thread ID:
00728578
Message ID:
00728578
Views:
48
When I have two forms showing I allow users to drag-drop from one to the other. These two screens can be from different Projects or accounts or contracts which means different data sources. Drag Drop in this situation means copy like data from one project to another.

A modal form that pops up in the drag drop copy sequence reads _screen.activeform.oProject in the load method to determine the proper project. Controls in the modal form need this information to determine where the data comes from.

I need the _screen.activeform to be the "drop" or "to" form of the drag-drop operation. However it remains the "source" or or "form" or "drag" form.

I cannot seem to convince the _screen.activeform to switch in code. I tried oToForm.Activate() and I tried _screen.activeform = oToForm which generates an error "activeform is read only".

Of course I can work around this easily by adding custom code in the modal form load but I am interested how you can set a form to be the _scareen.activeform in code.
Best Regards
Don Simpson
Next
Reply
Map
View

Click here to load this message in the networking platform