Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Paul Mannes
  Where is Paul Mannes?
 Virginia - United States
 Paul Mannes
Subject: Form Object functions App vs Exe
Thread ID: 395732 Message ID: 395732 # Views: 48 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Projects and Design
Date: Friday, January 17, 2014 7:26:41 PM         

I have a form that I saved as an Object for use as a Security Login
I have a main.prg which has a public variable declaration of this form object ofrmSecurityControl
I have a main form that is called from the main.prg followed by a Read Events
public ofrmSecurityControl
.... && parms for object parameters set..
ofrmSecurityControl = createobject("SecurityControl",parms....)

do form frmMain name ofrmMain
read events

Here is the issue:
In the frmMain.Init the ofrmSecurityControl.Show() is called.

When I run this as an App for testing, it stops at the .Show() and allows entry on the ofrmSecurityControl form
When I run this as an Exe in the same environment, it blows right by the .Show() and creates a problem....

The main form is Modeless and frmSecurityControl is Modal
The main form is ShowWindow - 2-As Top-Level Form and the frmSecurityControl is ShowWindow - 1-In Top-Level Form..

Paul Mannes


Form Object functions App vs Exe Posted by Paul Mannes @ 1/17/2014 7:26:41 PM
RE: Form Object functions App vs Exe Posted by Stefan Wuebbe @ 1/18/2014 10:00:37 AM