Trip,
In this case, Systemids is the name of a table (to be more precise, it's the
alias of the name of the table, but the distinction isn't important in this context).
When you say SELECT Systemids, you are telling Foxpro that the Systemids table will be the current or active table. Subsequent commands and functions will operate on that table, until you tell it otherwise.
So, for example, your LOCATE command, which searches a table for a given record, will now search the Systemids table.
What this code appears to be doing is to generate a primary key. The systemids table seems to contain values to be used as keys. When you want a new key, you search the table for the current key, add one to it, and write it back to the table. Rick has given you a fuller explanation of this in Thread1252-984297.
I hope this helps. I know VFP can be a bit confusing to start with, but persevere and it will eventually become clear.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)