Cita:
Iniciado por alexa10
...¿como lo hago?...

Cita:
Iniciado por tammander
Acuerdate de que puedes redimensionar de dos formas:
- redimensionando y preservando su contenido
redim preserve ar(33,2)
redim preserve ar(33,3) --> Bien
Un saludo
Cita:
Iniciado por CésarBalaguer
si hay forma de redimencionarlo en forma dinàmica, por ejemplo ...
un ejemplo para reforzar lo que te han comentado, supongamos una consulta...
Código PHP:
'inicializamos el arreglo en nada
DIM sem()
'generamos una consulta, para sacar un total de registros
RS.Open sql, cxn
if Err=0 then
tantos=0
while RS.EOF=false
tantos=tantos+1
RS.movenext
wend
end if
RS.close
'redimensionamos el arreglo, restandole 1, por que sino se saldria del
'intervalo del arreglo, recordemos que se toma como valor inicial 0(creo)
REDIM sem(tantos-1)
'una segunda consulta para obtener algun nombre de la tabla
RS.open sql, cxn
if Err=0 then
inicia=0
while RS.EOF=false
sem(inicia)=RS("nombre").value
RS.movenext
inicia=inicia+1
wend
end if
'limpiamos y cerramos las consultas
RS.close
cxn.close
set RS=nothing
set cxn=nothing
'ahora que ya tenemos el arreglo con datos, que hacemos con el ???
'si fueran valores numericos sumarlos, caso contrario, poder mandar llamar
'funciones ... otro ejemplo
for ver=0 to uBound(sem)
if (sem(ver)<>"B") then
call funcion(1,tabla,sem(ver))
end if
next
'TAMBIEN DEBEMOS RECORDAR QUE SON VARIABLES QUE USA EL SERVIDOR
'ASI QUE TENEMOS QUE ELIMINARLAS SI NO LAS OCUPAMOS MAS
REDIM sem(0)'Matriculas
REDIM grp(0)'Indexs
sem(0)=null'Matriculas
grp(0)=nullIndexs
suerte