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.
>&& 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