Settings used by the Surveycraft DSC
Settings allow you to control how the Surveycraft DSC reads .vq and .qdt files. You can specify settings by adding entries to a .ini file that the Surveycraft DSC can read.
The .ini file must have the same name as the .vq and .qdt files to be read, but with a .ini extension, for example, MyProject.ini. The .ini file must be in the same folder as the .vq and .qdt files. The .ini file should contain a section labeled [mrScDsc], which consists of lines of the form setting_name = value. For example:
[mrScDsc]
SAVAlias=1
VDATA=True
Settings
codePage
A Long value that specifies the code page for the Surveycraft DSC to use when converting texts to Unicode. When reading .vq files that contain Japanese or other multibyte characters, you typically set codePage to the appropriate code page number and set oemTranslate as described in the entry below.
ExpandVDATA
A Long value that specifies whether the Surveycraft DSC will include Surveycraft loop variables in the VDATA virtual table. A value of 1 (or any positive integer) specifies that the Surveycraft DSC must include loop variables in the table and that they must be flattened, that is, the Surveycraft DSC must insert a separate column in the table for each iteration of the loop. A value of 0 specifies that the Surveycraft DSC must include loop variables in the table and set the array type of the corresponding MDM variable to mlLevel instead of mlExpand. A value of -1 (or any negative integer) specifies that the Surveycraft DSC must not include loop variables in the table. The default is 1.
If the value of the vdata setting described below is False, the Surveycraft DSC will ignore the ExpandVDATA setting.
oemTranslate
A Boolean value that determines whether the Surveycraft DSC translates texts using OemToAnsi translation. The default value is True. When reading .vq files that contain Japanese or other multibyte characters, you typically set oemTranslate to False and set codePage as described in the entry above.
SAVAlias
A Long value that specifies whether the Surveycraft DSC generates alias names in the SAV user context. A value of 1 (or any positive integer) specifies that the Surveycraft DSC must generate alias names. A value of 0 or -1 (or any negative integer) specifies that the Surveycraft DSC must not generate alias names. The default is -1.
vdata
A Boolean value that determines whether the Surveycraft DSC generates a VDATA virtual table. If the value is True, the Surveycraft DSC generates both HDATA and VDATA tables. If the value is False, the Surveycraft DSC generates an HDATA table only. The default is False.
Note that when the value of
vdata is False, the
Table Services DSC automatically provides a VDATA view when one is required, for example, when you execute an SQL statement that queries the VDATA table.
See also