Difference between revisions of "QAS getByUniqueAccessCode"
Nguyenduyan (talk | contribs) (Created page with "{{HelpFiles}} ==== QAS_getByUniqueAccessCode<br/> ==== Get a questionnaire answer sheet by its AccessCode '''Syntax''' QAS_getByUniqueAccessCode(string accessCode); '''Ar...") |
(Tag: visualeditor) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{HelpFiles}} | {{HelpFiles}} | ||
− | ==== QAS_getByUniqueAccessCode | + | ==== QAS_getByUniqueAccessCode ==== |
Get a questionnaire answer sheet by its AccessCode | Get a questionnaire answer sheet by its AccessCode | ||
Line 15: | Line 15: | ||
'''Return value''' | '''Return value''' | ||
− | An array, it is the answer sheet object, which has the same format as what created by ''QAS_new ''function | + | An array, it is the answer sheet object, which has the same format as what created by ''[[QAS_new]] ''function |
+ | |||
+ | In later version, return value is a [[QAS_class]] | ||
'''Example''' | '''Example''' | ||
− | + | <source lang="javascript"> | |
− | + | array qas = QAS_getByUniqueAccessCode("HyHiZwBVHQ"); | |
− | + | print(qas); | |
− | + | /*old return: {15,1742872863,15546533,61,False,5,True,{2016,11,3,16,5,42,200,44,65},{2016,11,3,16,5,47,100,44,65},2b1d5500-4847-4e22-91e9-35b9f83da413,{1,1,1,0,0,0,0,1,65},1,0,58378,0}*/ | |
− | + | // new return: QAS | |
− | + | </source> | |
− | + | [[Category:Questionnaire_Functions]] | |
− | {15,1742872863,15546533,61,False,5,True,{2016,11,3,16,5,42,200,44,65},{2016,11,3,16,5,47,100,44,65},2b1d5500-4847-4e22-91e9-35b9f83da413,{1,1,1,0,0,0,0,1,65},1,0,58378,0} |
Latest revision as of 10:13, 7 August 2019
QAS_getByUniqueAccessCode
Get a questionnaire answer sheet by its AccessCode
Syntax
QAS_getByUniqueAccessCode(string accessCode);
Arguments
- accessCode: is a string expression. It is the questionnaire answer sheet's access code
Return value
An array, it is the answer sheet object, which has the same format as what created by QAS_new function
In later version, return value is a QAS_class
Example
array qas = QAS_getByUniqueAccessCode("HyHiZwBVHQ");
print(qas);
/*old return: {15,1742872863,15546533,61,False,5,True,{2016,11,3,16,5,42,200,44,65},{2016,11,3,16,5,47,100,44,65},2b1d5500-4847-4e22-91e9-35b9f83da413,{1,1,1,0,0,0,0,1,65},1,0,58378,0}*/
// new return: QAS