Difference between revisions of "QAS getByGuid"

From Catglobe Wiki
Jump to: navigation, search
(Tag: visualeditor)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Questionnaire_Functions]]
 
[[Category:Questionnaire_Functions]]
 +
{{HelpFiles}}
  
{{Function_Template|Name=QAS_getByGuid|ReturnType=Array
+
====QAS_getByGuid====
|Parameters=
+
 
|Name=<nowiki>Guid</nowiki>|ConstantType=String
+
Get a questionnaire answer sheet by its GUID. If no answer sheet is found, empty will be returned.
}}
+
 
 +
'''Syntax'''
 +
 
 +
QAS_getByGuid(''qasGuid'')
 +
 
 +
'''Arguments'''
 +
 
 +
* ''qasGuid'': is a ''string ''expression. It is the questionnaire answer sheet's GUID
 +
 
 +
'''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'''
 +
<source lang="javascript">
 +
array qas = QAS_getByGuid("781fc858-3007-42bf-b801-540de8df228c");
 +
print(qas);
 +
//old return: {15,82115249,36314707,36285016,False,1,False,{1,1,1,1,0,0,0,1,40},{1,1,1,1,0,0,0,1,40},781fc858-3007-42bf-b801-540de8df228c,{1,1,1,0,0,0,0,1,40},5,0,23343}
 +
// new return:  QAS
 +
</source>

Latest revision as of 11:30, 7 August 2019



QAS_getByGuid

Get a questionnaire answer sheet by its GUID. If no answer sheet is found, empty will be returned.

Syntax

QAS_getByGuid(qasGuid)

Arguments

  • qasGuid: is a string expression. It is the questionnaire answer sheet's GUID

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_getByGuid("781fc858-3007-42bf-b801-540de8df228c");
print(qas);
//old return: {15,82115249,36314707,36285016,False,1,False,{1,1,1,1,0,0,0,1,40},{1,1,1,1,0,0,0,1,40},781fc858-3007-42bf-b801-540de8df228c,{1,1,1,0,0,0,0,1,40},5,0,23343}
// new return:  QAS