Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way to evaluate
Message
De
31/12/2004 21:31:16
 
 
À
31/12/2004 20:31:27
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00973604
Message ID:
00973605
Vues:
19
Michel,

I'm losing track of your posts. You posted a question an hour earlier about images. You answered that question yourself a half hour after that. This post here seems similar to that answering post, yet it was made 15 minutes after it. I guess I'm just getting confused as to whether you've already answered your question.

If you're asking about how to execute dynamic code (which, from your other post, I didn't think you needed to do), then check out Rick's white paper on the subject:

http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm

~~Bonnie



>I need some kind of evaluation approach in VB.NET. I have some code which runs in a loop. For each occurence of the loop, there is a corresponding object on the form. Those are images. So, they are WebServerImage1, WebServerImage2, ...
>
>The issue is how to make a reference to the related object from the loop?
>
>Lets say I have this code:
>
>
>        For lnCounter = 1 To lnNumberOfServer
>            'WebServerImage1.Image = Image.FromFile(lcStartupDirectory + "..\Images\Green.gif")
>        Next
>
>
>The line should be dynamic to lnCounter. So, something like:
>
>
>"WebServerImage" + Trim(Str(lnCounter)+".Image=..."
>
>
>is required.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform