![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/10/2009, 01:36
|
![Avatar de jahman](http://static.forosdelweb.com/customavatars/avatar47794_1.gif) | | | Fecha de Ingreso: noviembre-2003 Ubicación: Oslo
Mensajes: 230
Antigüedad: 21 años, 2 meses Puntos: 0 | |
Respuesta: If con string de exclusion Gracias Peterpay ![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif) , faltaba solamente un manejo de banderas ![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png) ...
la idea hor_sharp era a travez de una cadena sacar todas las q estan en la lista de excluidas string[] exclu
Código:
string[] exclu = { "Merke", "Hentet inn", "Boligtype", "Båttype", "Eieform", "Ferietype", "Hovedkategori", "Jobbkategori", "Kategori" , "Kommune" , "Land" , "MC Type" , "Modell", "Scooter/Moped", "Sted", "Stillingsnivå", "Type lokaler", "Underkategori" };
int er = exclu.Length;
int flag = 0;
foreach (SortArea sortArea in UserInfo.CurrentMarket.SortAreas)
{
for (int he = 0; he < er; he++)
{
if (sortArea.Text == exclu[he])
{
flag = 1;
}
}
if (flag != 1)
Prue.Text += sortArea.Text + ":" + "<br /> ";
else
flag = 0;
}
|