sqlexec(con, "select max(id) as id from <tabla>", "tabla")
luego solo te queda sumarle uno
sqlexec(con, "select max(id) + 1 as id from <tabla>", "tabla")
Podria sumarse en la misma sentencia.
eduardo_petronzi
unread,
Jan 27, 2009, 11:23:32 AM1/27/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mundo Visual FoxPro
si tienes un indice sobre ese campo id (supongo que si lo usas como
clave deberías tenerlo ... si no puedes crearlo)
set order to id
go bott
Nuevo = id + 1