RenameRecord
Mon 01 January 2018Syntax
RenameRecord(Record.NewRecordName, Record.OldRecordName)
Description
Use the RenameRecord function to modify a record definition to have a name. This function also cleans up most references so they now use the new name.
Note: Because using this function changes records that are used to build application tables, you must rebuild (alter) the specified project before these changes can be used.
Parameters
| 
      Field or Control  | 
    
      Definition  | 
   
|---|---|
| NewRecordName | 
      Specify the new record name to be used. This name must be prefixed by the reserved word Record .  | 
   
| OldRecordName | 
      Specify the name of the record to be changed. This name must be prefixed by the reserved word Record .  | 
   
Returns
A constant value. The values are:
| 
       Value  | 
     
       Description  | 
    
|---|---|
| 
       %MDA_Success  | 
     
       Bulk operation completed successfully.  | 
    
| 
       %MDA_Failure  | 
     
       Bulk operation did not complete successfully.  | 
    
| 
       %MDA_RecordNotFound  | 
     
       The record specified with OldRecordName wasn't found.  |