>Does anyone know a quick way to call PrimaryKey() in CodeMine 7 and have it increment a key by a number greater than one (1), or is there another function I should call instead. I need to be able to increment it by 10 or some other number. Also, this field I am wanting to increment is not the main Primary field key used for RA with child tables, but rather a field that the user needs to be able to see and edit.
>>>
Mel,
How about writing a newkey() function that deals with this separately from the primary key. You can use the same technique of storing the next available key in the CodeMine application registry by retrieving and writing the key there using the registry functions.
To retreive the key:
goapp.oregistry.getkeyvalue("%Local.NextKey")
To set the key:
goapp.oregistry.setkeyvalue("%Local.NextKey",keyvalue)
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.