Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set _screen.activeform in code
Message
De
02/12/2002 09:44:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Set _screen.activeform in code
Divers
Thread ID:
00728578
Message ID:
00728578
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform