Brightsign BrightScript 3.0 Reference Manual Manual do Utilizador Página 25

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 75
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 74 75

Comentários a estes Manuais

Sem comentários