Пример #1
0
 /// <summary>
 /// Gets the measurement level of a variable.
 /// </summary>
 /// <param name="handle">
 /// Handle to the data file.
 /// </param>
 /// <param name="varName">
 /// Variable name.
 /// </param>
 /// <param name="measureLevel">
 /// Measurement level.
 /// </param>
 /// <returns>
 /// <see cref="ReturnCode.SPSS_OK"/>,
 /// <see cref="ReturnCode.SPSS_INVALID_HANDLE"/>,
 /// <see cref="ReturnCode.SPSS_INVALID_VARNAME"/>, or
 /// <see cref="ReturnCode.SPSS_VAR_NOTFOUND"/>.
 /// </returns>
 /// <remarks>
 /// This function reports the value of the measurement level attribute of a variable.
 /// </remarks>
 public static ReturnCode spssGetVarMeasureLevel(int handle, string varName, out MeasurementLevelCode measureLevel)
 {
     int measureLevelInt;
     ReturnCode status = SpssThinWrapper.spssGetVarMeasureLevelImpl(handle, ref varName, out measureLevelInt);
     measureLevel = (MeasurementLevelCode)measureLevelInt;
     return status;
 }
Пример #2
0
 /// <summary>
 /// Sets the measurement level of a variable.
 /// </summary>
 /// <param name="handle">
 /// Handle to the data file.
 /// </param>
 /// <param name="varName">
 /// Variable name.
 /// </param>
 /// <param name="measureLevel">
 /// Measurement level.
 /// </param>
 /// <returns>
 /// <see cref="ReturnCode.SPSS_OK"/>,
 /// <see cref="ReturnCode.SPSS_INVALID_HANDLE"/>,
 /// <see cref="ReturnCode.SPSS_OPEN_RDMODE"/>,
 /// <see cref="ReturnCode.SPSS_DICT_COMMIT"/>,
 /// <see cref="ReturnCode.SPSS_INVALID_VARNAME"/>,
 /// <see cref="ReturnCode.SPSS_VAR_NOTFOUND"/>, or
 /// <see cref="ReturnCode.SPSS_INVALID_MEASURELEVEL"/>.
 /// </returns>
 /// <remarks>
 /// This function sets the value of the measurement level attribute of a variable.
 /// </remarks>
 public static ReturnCode spssSetVarMeasureLevel(int handle, string varName, MeasurementLevelCode measureLevel)
 {
     return SpssThinWrapper.spssSetVarMeasureLevelImpl(handle, ref varName, (int)measureLevel);
 }