GetRecordDefn function
Syntax
GetRecordDefn(record_name)
Description
Use the GetRecordDefn function to return an existing record definition.
Parameters
| Parameter | Description |
|---|---|
|
record_name |
Specifies the record to be retrieved. |
Returns
A record definition object.
Returns a null value if the record definition doesn’t exist or the user doesn’t have permissions to access the record.
Example
Local RecordDefn &myRecord = GetRecordDefn("MYRECORD_VW");
If All(&myRecord) Then
&myRecord.Description = "My new record description";
&retVal = &myRecord.Save();
/* do error checking … */
&retVal = &myNewRecord.Build();
/* do error checking … */
End-If;
Related Topics