User Tools

Site Tools


arrayvalueobjects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arrayvalueobjects [2021/10/11 20:32] wikiadminarrayvalueobjects [2026/01/25 20:27] (current) – [JavaScript Notes] wikiadmin
Line 47: Line 47:
  
 avo = ArrayDataSource->getValueObject(); avo = ArrayDataSource->getValueObject();
-value1 = avo.elementAt(0); //this gets the first element of the array+valueObject1 = avo.elementAt(0); //this gets the first element of the array - this is a StringValueObject (not a String)
    
 //Arrays are indexed starting at 0, so some of the elements of the array would be: //Arrays are indexed starting at 0, so some of the elements of the array would be:
  
-value2 = avo.elementAt(1); +valueObject2 = avo.elementAt(1); 
-value3 = avo.elementAt(2);+valueObject3 = avo.elementAt(2); 
 + 
 +//get the String values: 
 + 
 +value1 = valueObject1.getStringValue(); 
 +value2 = valueObject2.getStringValue(); 
 +value3 = valueObject3.getStringValue();
    
 //You may want to know how many elements are in the array: //You may want to know how many elements are in the array:
    
-count = avo.size();+count = avo.length; 
 +print("AVO size is: " + count);
 </code> </code>
  
arrayvalueobjects.1633998740.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki