MemberDelete (open)

Delete a member from an object

Syntax

// Core function, no LOADLIB necessary

OBJECT FUNCTION MemberDelete(OBJECT obj, STRING membername)

Parameters

OBJECT obj

Object to modify

STRING membername

Name of the member to insert

Return value

OBJECT

The object with the new member inserted.

Description

MemberDelete deletes the specified member in the object. This member must be inserted with MemberInsert first, members from an object type declaration cannot be deleted. Member names are case-insensitive. MemberInsert can be

If the member already exists in @italic obj, an error is generated.

Examples

// Delete a mydata member into a file object
OBJECT myfile := FindFile(15);
myfile := MemberInsert(myfile, "mydata", "Hello, World!");
myfile := MemberDelete(myfile, "mydata");