Difference between revisions of "QAS reset"
Nguyenduyan (talk | contribs) (→QAS_reset) |
(Tag: visualeditor) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
This function is to reset a list of Questionnaire Answer Sheets | 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) | + | (just reset, do not delete data of these answer sheet, we have another function to delete data: [[QAS_deleteData]]) |
'''Syntax''' | '''Syntax''' | ||
Line 11: | Line 11: | ||
QAS_reset(array answerSheetIds) | QAS_reset(array answerSheetIds) | ||
− | '''Arguments''' | + | '''Arguments''' |
+ | |||
answerSheetIds is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire. | answerSheetIds is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire. | ||
Line 19: | Line 20: | ||
'''Example 1''' | '''Example 1''' | ||
− | + | <source lang="csharp"> | |
array answerSheetIds={28415738,28415739,28415740}; | array answerSheetIds={28415738,28415739,28415740}; | ||
− | |||
QAS_reset(answerSheetIds); //returned Result: {} | QAS_reset(answerSheetIds); //returned Result: {} | ||
− | + | </source> | |
'''Example 2''' | '''Example 2''' | ||
− | + | <source lang="csharp"> | |
array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id | array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id | ||
− | |||
QAS_reset(answerSheetIds); //returned Result: {28415740} | QAS_reset(answerSheetIds); //returned Result: {28415740} | ||
+ | </source> | ||
+ | '''Availability''' | ||
− | + | Version 5.9.5 | |
− | + | __NOTOC__ | |
[[Category:Questionnaire_Functions]] | [[Category:Questionnaire_Functions]] |
Latest revision as of 09: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