The RemoveItem method removes a member object from a collection.
Syntax
RemoveItem(ItemName as String) as Boolean
RemoveItem(Index as Integer) as Boolean
Parameters
ItemName
The name of the member to remove.
Index
The index of the member to remove.
Return Value
True if the item was removed from the collection.
Example
This example, which could be used as the code for the DataEngine.GetCustomMetaData for a project, removes the Salary field in the Employees table from the data dictionary.
Visual FoxPro
lparameters toApplication as SQApplication
toApplication.DataEngine.Fields.RemoveItem('EMPLOYEES.SALARY')
VBScript
function Main(Application)
Application.DataEngine.Fields.RemoveItem("EMPLOYEES.SALARY")
JavaScript
function Main(Application) {
Application.DataEngine.Fields.RemoveItem('EMPLOYEES.SALARY') ;
}
C#
public static void DataEngine_GetCustomMetaData(SFQApplication sfqApplication)
{
sfqApplication.DataEngine.Fields.RemoveItem("EMPLOYEES.SALARY")
}
VB.NET
public shared function DataEngine_GetCustomMetaData(sfqApplication as SFQApplication)
as Boolean
sfqApplication.DataEngine.Fields.RemoveItem("EMPLOYEES.SALARY")
End Function
See also
Collections© Stonefield Software Inc., 2023 • Updated: 06/06/16
Comment or report problem with topic