SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
1.
Estructura For Each Leonel Morales Díaz Ingeniería Simple [email_address] Disponible en: http://www.ingenieriasimple.com/introprogra Copyright 2008 by Leonel Morales Díaz – Ingeniería Simple. Derechos reservados
2.
Estructura For Each <ul><li>Recorrer una lista o colección </li></ul><ul><li>Arrays o colecciones de objetos </li></ul><ul><li>Equivalente Javascript: </li></ul><ul><ul><li>for ( variable in colección ) { instrucciones } </li></ul></ul><ul><li>Facilita acceso </li></ul><ul><li>No garantiza orden </li></ul>
3.
Repaso del Examen <ul><li>Document.Write “<Table Id=TablaArchivos Border=1></Table>” </li></ul><ul><li>¿Por qué la tabla está “cerrada”? </li></ul><ul><li>¿Se le podrán agregar datos? </li></ul><ul><li>¿Por qué tiene un id=? </li></ul>
4.
Repaso del Examen <ul><li>Sub ListaArchivos(FldObj) </li></ul><ul><li>¿Qué hace ListaArchivos(FldObj)? </li></ul><ul><li>¿Por qué tiene un parámetro? </li></ul><ul><ul><li>¿Qué función tiene el parámetro? </li></ul></ul><ul><li>¿De qué tipo es el parámetro? </li></ul>
5.
Repaso del Examen <ul><li>For Each FilObj In FldObj.Files </li></ul><ul><li>¿Qué función tiene FilObj? </li></ul><ul><li>¿Qué contiene FldObj.Files? </li></ul><ul><li>¿Cuántos valores diferentes tomará FilObj? </li></ul><ul><li>¿Qué pasa si en FldObj no hay archivos? </li></ul>
6.
Repaso del Examen <ul><li>Right(FilObj.Name,4) = “.htm” Or Right(FilObj.Name,5) = “.html” </li></ul><ul><li>¿FilObj.Name es una propiedad o un método? </li></ul><ul><li>¿Qué diferencia habría con usar: </li></ul><ul><ul><li>InStr(FilObj.Name,”.htm”)>0 ? </li></ul></ul>
8.
Repaso del Examen <ul><li>Set NvaFila = Document.GetElementById(“TablaArchivos”).InsertRow </li></ul><ul><li>Set NvaCelda = NvaFila.InsertCell </li></ul><ul><li>NvaCelda.InnerHTML = Contenido </li></ul><ul><li>¿Qué hace el método InsertRow? </li></ul><ul><li>¿Por qué se usa “Set”? </li></ul><ul><li>¿Y el método InsertCell? </li></ul><ul><li>¿Son necesarias las variables NvaFila y NvaCelda? </li></ul>
9.
Repaso del Examen <ul><li>For Each SubFldObj in FldObj.SubFolders </li></ul><ul><li>ListaArchivos SubFldObj </li></ul><ul><li>Next </li></ul><ul><li>¿Está dentro del Sub ListaArchivos? </li></ul><ul><li>¿Por qué está adentro? </li></ul><ul><li>¿Qué contiene FldObj.SubFolders? </li></ul>
10.
Ejercicio <ul><li>En grupos </li></ul><ul><ul><li>Máximo 5 por grupo </li></ul></ul><ul><li>Probar el código (2 miembros) </li></ul><ul><ul><li>Investigar las instrucciones </li></ul></ul><ul><ul><li>Identificar los problemas que tiene </li></ul></ul><ul><ul><li>Comunicarlos al resto </li></ul></ul><ul><li>Diseñar algo mejor (el resto) </li></ul><ul><ul><li>La idea es buscar todos los .htm, .jpg y .gif </li></ul></ul><ul><ul><li>Presentarlos y hacerlos accesibles </li></ul></ul><ul><li>Implementarlo (todos) </li></ul>
0 likes
Be the first to like this
Views
Total views
445
On SlideShare
0
From Embeds
0
Number of Embeds
9
You have now unlocked unlimited access to 20M+ documents!
Unlimited Reading
Learn faster and smarter from top experts
Unlimited Downloading
Download to take your learnings offline and on the go
You also get free access to Scribd!
Instant access to millions of ebooks, audiobooks, magazines, podcasts and more.
Read and listen offline with any device.
Free access to premium services like Tuneln, Mubi and more.