Developer Documentation Library > Data Model > Available DSCs > Surveycraft DSC > Settings used by the Surveycraft DSC
 
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 then set oemTranslate.
ExpandVDATA
A Long value that specifies whether to include Surveycraft loop variables in the VDATA virtual table.
1 (or any positive integer) includes 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.
0 specifies includes loop variables in the table and set the array type of the corresponding MDM variable to mlLevel instead of mlExpand.
-1 (or any negative integer) does not include loop variables in the table.
The default value is 1.
If the value of the vdata setting is False, the Surveycraft DSC ignores 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 multi-byte characters, you typically set oemTranslate to False and set codePage as described in codePage.
SAVAlias
A Long value that specifies whether the Surveycraft DSC generates alias names in the SAV user context.
1 (or any positive integer) generates alias names.
0 or -1 (or any negative integer) does not generate alias names.
The default value 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.
When the value of vdata is False, the Table Services DSC provides a VDATA view when one is required, for example, when you execute an SQL statement that queries the VDATA table.
See also
About the Surveycraft script
Surveycraft *attrib directives
Using the dsc.useLabel directive
Surveycraft DSC: Troubleshooting
Surveycraft DSC: Supported CDSC features
Surveycraft DSC