Hello!
I'm trying to automate a listing filling handler to be used with V12 Xtra.
What I'm trying to do is a cycle where the list's name is changing but the
filling handler is the same.
on startMovie
global listaBaresyCantinas, listaHoteles, listaLibrerias
global listaMuseosyGalerias, listaRestaurantes, listaTeatros
-- Listas de campos
listaGeneral =[\
"Nombre", "Calle", "Telefono1", "Email", "Website", "Ubicacion"]
listaTablas =[\
"tablaBaresyCantinas", \
"tablaHoteles", \
"tablaLibrerias",\
"tablaMuseosyGalerias", \
"tablaRestaurantes", \
"tablaTeatros"]
tablasContadas = listaTablas.count -- se cuentan las tablas para ir
llenando una a una
--se llenan las listas tabla por tabla
repeat with i=1 to tablasContadas
nombreTemporal = getAt(listaTablas, i)
case nombreTemporal of
"tablaBaresyCantinas":
contenedorTemporal = duplicate(listaGeneral)
listaEspecifica = ["Ambiente", "Clasificacion", "ValetParking",
"Horario"]
"tablaHoteles":
listaHoteles = duplicate(listaGeneral)
listaEspecifica = ["No_Estrellas", "ServiciosCorp"]
"tablaLibrerias":
listaLibrerias = duplicate(listaGeneral)
listaEspecifica = ["Clasificacion", "Horario"]
"tablaMuseosyGalerias":
listaMuseosyGalerias = duplicate(listaGeneral)
listaEspecifica = ["Clasificacion", "ServiciosCorp", "ValetParking",
"Horarios", "Cuota"]
"tablaRestaurantes":
listaRestaurantes = duplicate(listaGeneral)
listaEspecifica = ["TipoComida", "ServiciosCorp", "ValetParking",
"Horario", "NivelPrecios", "TarjetaCredito", "Especialidades"]
"tablaTeatros":
listaTeatros = duplicate(listaGeneral)
listaEspecifica = ["Clasificacion"]
end case
conteoListaEspecifica = count(listaEspecifica)
repeat with j=1 to conteoListaEspecifica
contenedor = getAt(listaEspecifica, j)
contenedorTemporal.add(contenedor)
end repeat
--THE PROBLEM IS HERE
-- How I can convert the content of "nombreTemporal" to a list name?
end repeat
end
Do you know if it possible?
Thank you in advanced.
Regards,
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]