Brightsign BrightScript 3.0 Reference Manual Manuel d'utilisateur Page 25

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 75
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 24
20
The following will return an roXMLElement reference to the first photo (id="3131875696"):
? rsp.photos.photo[0]
The following will return an roXMLList reference containing the <photos> tag:
? rsp.photos
The following will return the string “100”:
rsp.photos@perpage
You can use the roXMLElement.GetText() method to return an element’s text: For example, if the variable <booklist>
contains the element <book lang=eng>The Dawn of Man</book>, then the following code will print the string “The
Dawn of Man”.
Print booklist.book.gettext()
Alternatively, using the Attribute Operator will print the string “eng”.
print booklist.book@lang
Example (Flikr code clip)
REM
REM Interestingness
REM pass an (optional) page of value 1 - 5 to get 100 photos
REM starting at 0/100/200/300/400
REM
REM returns a list of "Interestingness" photos with 100 entries
REM
Vue de la page 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 74 75

Commentaires sur ces manuels

Pas de commentaire