Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need help - Hide VFP Main Screen Problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
I need help - Hide VFP Main Screen Problem
Divers
Thread ID:
00062346
Message ID:
00062346
Vues:
118
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform