2 Nov
2001
2 Nov
'01
7:46 p.m.
On 2/11/01 5:35 pm, "Julián Muñoz Domínguez" <jmunoz@softhome.net> wrote:
Thanks a lot !!!
The query I am doing is: select MAX(CliCodigo) from ClientesTabla
And the column that is returned by zope is named 'Expr1000' (a bit strange :-)), and doing:
I=int(container.last_customer()[0].Expr1000)
Works !!! Thank you, I was becoming fool :-)
If you rewrite the SQL as; select MAX(CliCodigo) as max_clicodigo from ClientesTabla (this is an SQL-alias basically) You'll get a variable called mac_clicodigo which you can use. hth Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope