Actually you don't need the For loop. Just the update:
include "mapbasic.def"
'...
dim i, num as integer
num = TableInfo("YOUR TABLE",Tab_info_nrows)
'assumes the table is open...
update YOUR TABLE set id=rowid
HTH
John Chioles
Metricom - a world without wires
http://www.metricom.com
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]