puercoespin
unread,May 23, 2012, 3:53:27 AM5/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-...@googlegroups.com
Hola a tod@s
en un código similar a este:
if combustible=='98':
row=db(db.98).select()
if combustible == '95':
row=db(db.95).select()
if combustible == 'Diesel':
row=db(db.Diesel).select()
etc., etc.
Bien, lo que quiero es simplemente realizar algo parecido a :
row=db(db.[aqui_estaria_la_variable_combustible]).select()
y dejarse de if's....
¿Cómo lo haría? Igual es una tontería, pero no lo encuentro...
Saludos