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.

QAS reset: Difference between revisions

From Catglobe Wiki
Cg loc (talk | contribs)
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 3: Line 3:
==== QAS_reset  ====
==== QAS_reset  ====


This function is to reset a Questionnaire Answer Sheet
This function is to reset a list of Questionnaire Answer Sheets
 
(just reset, do not delete data of these answer sheet, we have another function to delete data: [[QAS_deleteData]])


'''Syntax'''
'''Syntax'''


QuestionnaireAnswerSheet_reset()  
QAS_reset(array answerSheetIds)  


or
'''Arguments'''


QuestionnaireAnswerSheet_reset(number QASID)
answerSheetIds is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire.


'''Arguments'''
'''Return type'''
QASID is a numeric (non-decimal) expression. It is the Questionnaire Answer Sheet ID of current Questionnaire.


'''Return type''
array of answer sheet ids where the function could not reset


empty
'''Example 1'''
 
<source lang="csharp">
'''Examples'''
array answerSheetIds={28415738,28415739,28415740};
 
QAS_reset(answerSheetIds); //returned Result: {}
QuestionnaireAnswerSheet_reset();  
</source>
'''Example 2'''
<source lang="csharp">
array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id
QAS_reset(answerSheetIds); //returned Result: {28415740}
</source>
'''Availability'''


QuestionnaireAnswerSheet_reset(28415738);
Version 5.9.5
 
'''Availability'''


Version 5.6 __NOTOC__  
__NOTOC__  


[[Category:Questionnaire_Functions]]
[[Category:Questionnaire_Functions]]

Latest revision as of 08:46, 7 August 2019



QAS_reset

This function is to reset a list of Questionnaire Answer Sheets

(just reset, do not delete data of these answer sheet, we have another function to delete data: QAS_deleteData)

Syntax

QAS_reset(array answerSheetIds)

Arguments

answerSheetIds is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire.

Return type

array of answer sheet ids where the function could not reset

Example 1

array answerSheetIds={28415738,28415739,28415740};
QAS_reset(answerSheetIds); //returned Result: {}

Example 2

array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id
QAS_reset(answerSheetIds); //returned Result: {28415740}

Availability

Version 5.9.5