Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need help - Hide VFP Main Screen Problem
Message
From
26/11/1997 02:16:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
I need help - Hide VFP Main Screen Problem
Miscellaneous
Thread ID:
00062346
Message ID:
00062346
Views:
123
I'm developing an application which shows a menu bar at startup. I want to hide the main VFP
screen after the user chooses a menu option from the menu bar and run the selected module as
Top-Level.

I have set the following:
1. in CONFIG.FPW :
screen=OFF
2. in INIT method of the form:
_screen.visible = .F.
3. in LOAD method of the form:
SELECT 0
USE table1 SHARED
4. form's showwindow :
2-As Top Level Form

Using the above steps, when the user chooses the program module from the menu bar, I see
that the main screen of VFP disappears, but after that I see an error message saying:
"File is in use"
Then I change or add commands of LOAD method of the form to the following:
SELECT 0
IF NOT USED('TABLE1')
USE table1 SHARED
ENDIF

but the result is when the user chooses the program from the menu bar, then the main screen
of VFP disappears for a while and then the program module exits to the menu bar again. Why?

Thanks a lot for any kind of help,
Andi Hidajat
pkshq@cbn.net.id
Next
Reply
Map
View

Click here to load this message in the networking platform