rp_data::createnewid



o.createnewid( tcTableID)

Return Value

New ID

Parameters

tcTableID
The unique ID of the record in the IDS table for the table of interest if you know it.
Leave this blank if you want the ID for the table assigned to object you are using.

Remarks

Use this function if you want to get Admin new ID number for table.

Example

o.CreateNewID()

The above would return a valid ID number for the table belonging to the object
you are using.  For instance;

lcNewAccount = o.oCustomers.CreateNewID()

This returns a new account number

If you are using the oTable object then this will still work as long as there
is a record in the IDS table for the table you have assgned to the oTable object
using the SetTable() method.


See also:

Class rp_data


Last Updated: 23/11/2005