Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
For each loop in ASP
Message
De
16/12/1999 09:33:10
 
 
À
15/12/1999 13:07:52
Christian Bellavance
Université du Québec à Hull
Hull, Québec, Canada
Information générale
Forum:
Visual Basic
Catégorie:
VBScript
Divers
Thread ID:
00304177
Message ID:
00304628
Vues:
22
>I am trying to write code and the tread interprets it...
>
>I always get an error when i try this code in an ASP with IIS 4.0
>
>** I have replace < whith -
>-%
>set Videos = CreateObject("MyDll.Videos")
>for each V in Videos
> Response.Write "-p-V.Name-/p-"
>next
>
>set Videos = nohting
>%-
>
>I always get the error saying "Object does not support this method or property" on the line "for each V in Videos". I guest that V as to be declared some how. If it is the case how do I do that?

For each is not part of VBScript. If you have a count property on the videos class then do:
For x=1 To Videos.Count
Change x=0 for 0 based.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform