Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CEE to IntelliSense
Message
De
19/08/2001 17:37:39
 
 
À
19/08/2001 10:15:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00545311
Message ID:
00546008
Vues:
18
Glenn,
Thanks for the code. This works like a charm because CEE reads these options at startup (and when you call configure from the CEE menu). Instead of setting expand.dbf, I enable/disable macro expansion by setting the registry options "spaceBar" and "commandWindow" to "No" under VFP7.

Thanks again for the idea!

>Hi Daniel,
>
>You can switch your Macro expansion files based upon your working environment. If you use an envirnment setting program add code like this to exchange the expand files.
>
>#include foxpro.h
>#DEFINE HKEY_CURRENT_USER           -2147483647  && BITSET(0,31)+1
>
>LOCAL lcLocalPath, lcFile, oReg, lcTeamPath
>
>IF NOT EMPTY(SYS(2000,(_samples+'Classes\registry.prg')))
>	set PROCEDURE TO (_samples+'Classes\registry.prg')
>	oReg = CREATEOBJECT('registry')
>	IF VARTYPE(oReg) = 'O'
>		IF VERSION(4) < '07'
>			lcFile = 'Expand7.DBF'
>		ELSE
>			lcFile = 'Expand.DBF'
>		ENDIF
>		lcLocalPath = ''
>		oReg.GetRegKey("LocalExpand",@lcLocalPath,;
>					"Software\COB\CEE\6.0\Options",;
>					HKEY_CURRENT_USER)
>		lcLocalPath = JUSTPATH(lcLocalPath)
>		lcTeamPath = ''
>		oReg.GetRegKey("LocalExpand",@lcTeamPath,;
>					"Software\COB\CEE\6.0\Options",;
>					HKEY_CURRENT_USER)
>		lcTeamPath = JUSTPATH(lcTeamPath)
>
>		oReg.SetRegKey("LocalExpand",lcLocalPath+"Expand7.DBF",;
>					"Software\COB\CEE\6.0\Options",;
>					HKEY_CURRENT_USER)
>		oReg.SetRegKey("TeamExpand",lcTeamPath+"Expand7.DBF",;
>					"Software\COB\CEE\6.0\Options",;
>					HKEY_CURRENT_USER)
>	ENDIF
>endif
>
>
>
>
>>Craig,
>>I guess I could. At the moment I'm converting all the IDE tools, add-ons, etc. from VFP6 to VFP7. I've extensively used CEE and in order to convert all of its functionality to VFP7 I need to compare between the two versions. Unfortunately as I mentioned to Rick, it seems impossible to have two different configurations. I've sent a message to the CEE support to see if there's a workaround. I'll post a message here if I get a solution.
>>
>>
>>>>
>>>>Thanks Rick. I will probably use CEE as you suggested. Unfortunately it seems impossible to have two different configurations for CEE since the settings are stored in the registry. At the moment I still use VFP6 and want to use the full functionality of CEE. I could use an empty expand.dbf in VFP7 but am afraid that CEE may interfere with intelliSense if it's not deactivated.
>>>>
>>>
>>>I've been using VFP7 for all my coding and VFP6 to test and run for several months now. Any reason you can't do that?
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform