Justin.Rosen
28-Oct-2008, 04:34 PM
I love BC3! :D I have found something that makes it even more useful for me.
It's an external program that acts as a filter for BC2 or BC3 for Visual Foxpro file types. The most useful part for me is the support for comparing two Foxpro class libraries ( *.VCX )
This gem of a program called VFP2TEXT.EXE was written by Frank Perez specifically for BC. http://www.pfsolutions-mi.com/blog/2008/03/08/BeyondCompare.aspx
He even includes an import settings file for BC2 to automatically import the rule.
I have done a few extra things such as making an BC3 import for the FoxPro file formats for use with VFP2TEXT.EXE:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Produced by Beyond Compare 3 from Scooter Software -->
<BCFileFormats>
<TTextFormat Value="Foxpro">
<CharPerLine Value="4096"/>
<CodePageDetect Value="True"/>
<ColBased Value="False"/>
<CommentCaseSig Value="True"/>
<ConvertKind Value="convertApp"/>
<ConvertLoadApp Value="C:\Program Files\Beyond Compare 3\VFP2Text\VFP2Text.EXE %s %t"/>
<ConvertNoEdit Value="True"/>
<ConvertSaveApp Value=""/>
<CtrlZIsEOF Value="False"/>
<DirectiveCaseSig Value="True"/>
<EnvironVarCaseSig Value="True"/>
<IdentifierCaseSig Value="True"/>
<KeywordCaseSig Value="False"/>
<LabelCaseSig Value="True"/>
<LineBased Value="False"/>
<LineNumCaseSig Value="True"/>
<Mask Value="*.cdx;*.dbc;*.dbf;*.dct;*.dcx;*.fpt;*.frt;*.frx;*. fxp;*.h;*.lbt;*.lbx;*.mnt;*.mnx;*.mpr;*.mpx;*.pjt; *.pjx;*.prg;*.qpr;*.sct;*.scx;*.vct;*.vcx"/>
<NumberCaseSig Value="True"/>
<OperatorCaseSig Value="True"/>
<StringCaseSig Value="True"/>
<TabAsSpaces Value="False"/>
<TabSize Value="8"/>
<TidyLeadingWS Value="False"/>
<TrimTrailingWS Value="False"/>
</TTextFormat>
</BCFileFormats>
** Note, if you want to edit *.prg, *.h and *.mpr files, make a seperate file format definition for those formats using a normal text compare ( don't use the external program ). Actually there is no good reason I can see why you would want to run a file which is plain text through VFP2Text.EXE.
If you are still reading then maybe you will be interested in trying out my preferences and file format's with VFP grammer for a VFP like feel in BC3. In that case after setting up VFP2TEXT.EXE download the attached .bcpkg file and import it.
I have heard that people using CVS systems, convert their .vcx files to a text format for the purposes of version comparision and editing, make changes to the text and then use another program to stick the text back into a .vcx file. If a similar technique could be used, it might be possible to edit the .vcx text in BC3 and then save it back to a .vcx. That would be very nice! If anyone know how to set this up please post it on this thread!
It's an external program that acts as a filter for BC2 or BC3 for Visual Foxpro file types. The most useful part for me is the support for comparing two Foxpro class libraries ( *.VCX )
This gem of a program called VFP2TEXT.EXE was written by Frank Perez specifically for BC. http://www.pfsolutions-mi.com/blog/2008/03/08/BeyondCompare.aspx
He even includes an import settings file for BC2 to automatically import the rule.
I have done a few extra things such as making an BC3 import for the FoxPro file formats for use with VFP2TEXT.EXE:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Produced by Beyond Compare 3 from Scooter Software -->
<BCFileFormats>
<TTextFormat Value="Foxpro">
<CharPerLine Value="4096"/>
<CodePageDetect Value="True"/>
<ColBased Value="False"/>
<CommentCaseSig Value="True"/>
<ConvertKind Value="convertApp"/>
<ConvertLoadApp Value="C:\Program Files\Beyond Compare 3\VFP2Text\VFP2Text.EXE %s %t"/>
<ConvertNoEdit Value="True"/>
<ConvertSaveApp Value=""/>
<CtrlZIsEOF Value="False"/>
<DirectiveCaseSig Value="True"/>
<EnvironVarCaseSig Value="True"/>
<IdentifierCaseSig Value="True"/>
<KeywordCaseSig Value="False"/>
<LabelCaseSig Value="True"/>
<LineBased Value="False"/>
<LineNumCaseSig Value="True"/>
<Mask Value="*.cdx;*.dbc;*.dbf;*.dct;*.dcx;*.fpt;*.frt;*.frx;*. fxp;*.h;*.lbt;*.lbx;*.mnt;*.mnx;*.mpr;*.mpx;*.pjt; *.pjx;*.prg;*.qpr;*.sct;*.scx;*.vct;*.vcx"/>
<NumberCaseSig Value="True"/>
<OperatorCaseSig Value="True"/>
<StringCaseSig Value="True"/>
<TabAsSpaces Value="False"/>
<TabSize Value="8"/>
<TidyLeadingWS Value="False"/>
<TrimTrailingWS Value="False"/>
</TTextFormat>
</BCFileFormats>
** Note, if you want to edit *.prg, *.h and *.mpr files, make a seperate file format definition for those formats using a normal text compare ( don't use the external program ). Actually there is no good reason I can see why you would want to run a file which is plain text through VFP2Text.EXE.
If you are still reading then maybe you will be interested in trying out my preferences and file format's with VFP grammer for a VFP like feel in BC3. In that case after setting up VFP2TEXT.EXE download the attached .bcpkg file and import it.
I have heard that people using CVS systems, convert their .vcx files to a text format for the purposes of version comparision and editing, make changes to the text and then use another program to stick the text back into a .vcx file. If a similar technique could be used, it might be possible to edit the .vcx text in BC3 and then save it back to a .vcx. That would be very nice! If anyone know how to set this up please post it on this thread!