Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

QuestionnaireHasData class

From Catglobe Wiki
Revision as of 05:10, 2 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

QuestionnaireHasData



Information about wheter or not a question has existing data or not.

Parent class

Inherits from object

Constructors

  • (int qResourceId "ResourceId of a questionnaire.") - Constructor to take many questionnaires

Methods

  • bool AnswerOptionHasData(string label "Question label", int value "Answer option value") - True if an answeropen has data, and is thus undeleteable (unless all existing data is converted to test data)
  • bool QuestionHasData(string label "Question label") - True if a question has data, and is thus undeleteable (unless all existing data is converted to test data)
  • bool SubQuestionHasData(string label "Question label", int gridnumber "Sub question grid number") - True if a subquestion has data, and is thus undeleteable (unless all existing data is converted to test data)
  • (From object) string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.


Examples

QuestionnaireHasData q = new QuestionnaireHasData (15548249);
q.QuestionHasData("Q1");//False
q.AnswerOptionHasData ("Q2",1);//True
q.SubQuestionHasData("Q7",0);//True