My favorites
▼
|
Sign in
lineadecodigo
Web Code Samples in spanish
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
lineadecodigo_web
/
WebContent
/
scripting
/
vbscript
/
arrays
/
recorrer-una-matriz.html
r480
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Recorrer una matriz</title>
</head>
<body>
<h1>Recorrer una matriz</h1>
<script type="text/vbscript">
'Lo primero es cargar el array con datos
'Esto lo vamos a hacer "a lo bestia"
dim miArray(2,3)
'Primera fila
miArray(0,0) = "Posicion 0,0"
miArray(0,1) = "Posición 0,1"
miArray(0,2) = "Posición 0,2"
miArray(0,3) = "Posición 0,3"
'Segunda fila
miArray(1,0) = "Posición 1,0"
miArray(1,1) = "Posición 1,1"
miArray(1,2) = "Posición 1,2"
miArray(1,3) = "Posición 1,3"
'Tercera fila
miArray(2,0) = "Posición 2,0"
miArray(2,1) = "Posición 2,1"
miArray(2,2) = "Posición 2,2"
miArray(2,3) = "Posición 2,3"
for x=0 to UBound(miArray)
for y=0 to UBound(miArray,2)
document.write (miArray(x,y)+ "<br>")
next
next
</script>
<hr>
Artículo disponible en: <a href="http://lineadecodigo.com/2008/03/30/recorrer-una-matriz-en-vbscript/">http://lineadecodigo.com/2008/03/30/recorrer-una-matriz-en-vbscript/</a><br/>
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a>
</body>
</html>
Show details
Hide details
Change log
r48
by vcuervo on Mar 29, 2008
Diff
Recorrer una matriz con VBScript
Go to:
.../arrays/recorrer-una-matriz.html
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1263 bytes, 47 lines
View raw file
Powered by
Google Project Hosting