You are here: Available Utilities > F > FIXFORM > Setting Up FIXFORM.INI

Setting Up FIXFORM.INI

You can enter some parameters from the command line, while others must be set in an INI file. The /P parameter specifies the name of the INI file, usually FIXFORM.INI.

To use the FIXFORM utility you must have a FIXFORM.INI and an FXR file. The FXR file must be specified in the parameter list to change font information. When you use the File, Convert, Multiple FAPs option, instead of this utility, be aware that any FIXFORM headings in the FAPCOMP.INI file will be used instead of those in the FIXFORM.INI file. Therefore, you should set up the INI settings in only one INI file.

Here is an example of a FIXFORM.INI file. This example shows all of all the options for the FixOptions control group.

< FixOptions >
  FixRect = No
  CombText = No
  MapFonts = Yes
  MapChars = No
  FixLeftMargin = No
  LeftMargin = 0
  FixTopMargin = No
  TopMargin = 0
  DeleteFields = No
  ChkRect = Yes
  Color = No
  FixRectSaveBottom = No
  FixNegative = No
  Rotate90 = No
  FixCalcs = No
  YearDigit4 = Yes
  UniqueFieldNames = No
  FixDALCheck = No
  FixDALSyntax = No
< MasterResource >
  DefLib  = \fap\mstrres\sampco\deflib\
  FormLib = \fap\mstrres\sampco\forms\
  FontLib = \fap\mstrres\sampco\deflib\
  FxrFile = rel121
< MappedFonts >
  1    = 22010
  10   = 22008
  16   = 22008
  1006 = 21006
  1007 = 21007
  1008 = 21008
  1009 = 21009
  1010 = 21010
  1011 = 21011
  1012 = 21012
  1014 = 21014
  1016 = 21016
  1018 = 21018
  1024 = 21024

(and so on…)

 < MappedChars >
   65 = 18
   69 = 22
   70 = 23
   73 = 26
   74 = 27
   75 = 28

(and so on…)

This example shows how to use the SX option to check DAL script syntax and correct errors. Note the second line of output. This line tells you that an attempt to correct the DAL syntax will be made.

fixfmw32 /i=ca2071 /x=rel121 /p=fixform /sx

Here is a sample of the output:

** Check field DAL syntax **

** Attempt DAL syntax correction **

Successful load of D:\FixForm - Feature 1371\deflib\rel121.FXR
Successful load of D:\FixForm - Feature 1371\formlib\Ca2071.FAP
DAL Syntax error on field <VEHICLE NO.>
Error 11:Invalid IF statement last token [end] at line 1 column 25
Orig: return jcenter (@(), 9);end;
Mods: return jcenter (@(), 9);;
Successful unload of D:\FixForm - Feature 1371\formlib\ca2071.FAP

The Mods line tells you how the DAL script syntax was modified.

Here is another example:

fixfmw32 /i=ca67a /x=rel121 /p=fixform /sx

Here is a sample of the output:

** Check field DAL syntax ** 
 ** Attempt DAL syntax correction ** 
Successful load of D:\FixForm - Feature 1371\deflib\rel121.FXR
Successful load of D:\FixForm - Feature 1371\formlib\Ca67a.FAP
DAL Syntax error on field <NBR OF AUTOS>

Error 11:Invalid IF statement last token [(EOF)] at line 1 column 102

Orig: IF Numeric (@()) then return (jcenter(format(@(),"n","zzz,zzz,zzz"),11));else return jcenter (@(),11)

Successful unload of D:\FixForm - Feature 1371\formlib\ca67a.FAP

Here, the Mods line does not exist. The utility detected the DAL syntax error but did not know how to correct it. You must correct this error.

This example shows how to use the SS option to check DAL script syntax:

fixfmw32 /i=ca2071 /x=rel121 /p=fixform /ss

Here is a sample of the output:

** Check field DAL syntax ** 
Successful load of D:\FixForm - Feature 1371\deflib\rel121.FXR
Successful load of D:\FixForm - Feature 1371\formlib\Ca2071.FAP
DAL Syntax error on field <VEHICLE NO.>
Error 11:Invalid IF statement last token [end] at line 1 column 25
	Orig: return jcenter (@(), 9);end;
DAL Syntax error on field <VEHICLE NO. #002>
	Error 11:Invalid IF statement last token [end] at line 1 column 25
	Orig: return jcenter (@(), 9);end;
DAL Syntax error on field <VEHICLE NO. #003>
	Error 11:Invalid IF statement last token [end] at line 1 column 25
	Orig: return jcenter (@(), 9);end;
Successful unload of D:\FixForm - Feature 1371\formlib\ca2071.FAP

The second line of output tells you that the utility will only check for DAL syntax errors.