__objDelInline()

Template

Function

Name

__objDelInline()

Category

API

Subcategory

Objects

Oneliner

Delete a METHOD INLINE from class

Syntax

      __objDelInline( <oObject>,  <cSymbol> ) --> oObject

Arguments

<oObject> is the object to work on.

<cSymbol> is the symbol name of METHOD or INLINE method to be deleted (removed) from the object.

Returns

__objDelInMethod() return a reference to <oObject>.

Description

__objDelInMethod() is a low level class support function that delete (remove) a METHOD or an INLINE method from an object. <oObject> is unchanged if a symbol with the name <cSymbol> does not exist in <oObject>.

Examples

      // create a new THappy class and add a Smile method
      oHappy := HBClass():New( "THappy" )
      __objAddMethod( oHappy,  "Smile",  @MySmile() )
      ? __objHasMethod( oHappy,  "Smile" )    // .T.
      // remove Smile method
      __objDelInMethod( oHappy,  "Smile" )
      ? __objHasMethod( oHappy,  "Smile" )    // .F.

      STATIC FUNCTION MySmile( nType )
         LOCAL cSmile
         DO CASE
         CASE nType == 1
            cSmile := ":)"
         CASE nType == 2
            cSmile := ";)"
         ENDCASE
         RETURN cSmile

Compliance

Harbour

Files

Library is core

Seealso

__objAddInline(), __objAddMethod(), __objGetMethodList(), __objGetMsgList(), __objHasMethod(), __objModInline(), __objModMethod()

3 responses to “__objDelInline()

  1. Pingback: Harbour Internal Functions | Viva Clipper !

  2. Pingback: Harbour Objects Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.