Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting all tags('TD')
Message
De
16/06/2003 18:48:46
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00800022
Message ID:
00800592
Vues:
26
Hi Sergey,
I couldn't get that to work, but I did get this:
loTags = loDoc.ALL.tags('TD')
FOR ln = 0 TO loTags.LENGTH - 1
  loTD = loTags.ITEM(ln)
  ....
ENDFOR
Am I missing something?


>Try
FOR EACH loTD IN loDoc.All.Tags('TD')
>...
>ENDFOR
>
>>I'm using VFP 7.0
>>
>>I've opened an InternetExplorer.Application and navigated to the page I want.
>>
>>I'm trying to get all the Document.All.Tags('TD') into an array that I can use in VFP.
>>Right now I'm doing:
>>
>>loDoc = this.get_document_object()
>>FOR ln = 0 TO loDoc.ALL.LENGTH-1
>>  lo = loDoc.ALL(ln)
>>  IF lo.tagName == 'TD'
>>    .....
>>  ENDIF
>>ENDFOR
>>
>>I would like to do something like this:
>>
>>local la(1)
>>loDoc = this.get_document_object()
>>la = loDoc.All.tags('TD')
>>for ln = 1 to alen(la)
>>  .....
>>endfor
>>
>>but loDoc.All.Tags('TD') returns an object, and I can't figure out how to use it.
>>
>>TIA
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform