Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For each loop in ASP
Message
From
16/12/1999 09:33:10
 
 
To
15/12/1999 13:07:52
Christian Bellavance
Université du Québec à Hull
Hull, Quebec, Canada
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00304177
Message ID:
00304628
Views:
23
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform