Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default size of command window
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00536350
Message ID:
00536762
Vues:
10
Change resource file name for the first instance to
SET RESOURCE TO (lcFile+"1.dbf")
and make sure that E:\Program Files\Microsoft Visual Studio\Vfp98\foxuser is default resource file. This way there would be no conflicts bettween two instances.


>Would anyone know why the command window of a second session of VFP does not maintain its size. It appears in the upper right very small (default I think). I use a different resource file (foxuser2.dbf) and would think it would maintain the last size it was set at. I have an environment program that runs at startup that includes this routine:
>************************
>&& use another foxuser resource file if a session of VFP is already running
>LOCAL lcApplicationTitle,lnHWnd,lcFile
>*!*	lcFile = "E:\Program Files\Microsoft Visual Studio\Common\VFP\FoxUser"
>lcFile = "E:\Program Files\Microsoft Visual Studio\Vfp98\foxuser"
>lcApplicationTitle = "VFP6-1"
>
>DECLARE INTEGER FindWindow IN Win32API;
>STRING @lpClassName, STRING @lpWindowName
>lnHWnd = FindWindow(0, @lcApplicationTitle)
>
>IF lnHwnd = 0
>	<i>SET RESOURCE TO (lcFile+"<b>1</b>.dbf")</i>
>	_screen.caption = "VFP6-1"
>ELSE
>	SET RESOURCE TO (lcFile+"2.dbf")
>	_screen.caption = "VFP6-2"
>ENDIF
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform