Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indirect reference to controls or binding to arraylist i
Message
De
29/08/2008 15:51:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01341965
Message ID:
01343342
Vues:
22
>>>>
>>>>UPDATE: I did get this to work. I limited the number of controls I have to search through by putting them in an mmgroupbox and used an arraylist to make it easier to work backwords from the control name to the correct text value.
>>>>
>>>
>>>You don't actually have to run through all of the controls. The Control collection has a Find() method, ex:
>>
>>Just out of curiosity, isn't that what the Find() method does?
>>Tim
>
>I guess it does it behind the scenes, but since it's inner code it should be quicker than doing this explicitly.

Possibly, and for the projects I work on either would be sufficient in the performance category. In the style of most programmers we would elect to implement the one that is either less code or easier to read. In both cases that is Paul's example I think. I would have shown that myself had I thought of it at that moment. :-)
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform