DBC_ClearProperty Procedure
This funtion remove property.
=
DBC_ClearProperty
Parameter
lcAlias
DBC Alias
Type Character
Direction Input
Alias of opened DBC as table.
liIDObject
Object ID
Type Integer
Direction Input
See DBC_GetIDObject().
liIDProp
Property ID
Type Integer
Direction Input
Property ID. For a list of properties, see DBC_EnumProperty().
Return value Integer
If the function succeeds, the return value is _DBC_ObjectFound.

If the function fails, the return value is _DBC_ObjectNotFound.
Example
#INCLUDE "dbc.h"
SET PROCEDURE TO dfo.prg ADDITIVE
LOCAL lcAlias,liIDT,lcDBC,luValue,luValueO
lcAlias=SYS(2015)
lcDBC=HOME(2)+"\Tastrade\Data\tastrade.dbc"
USE (lcDBC) ALIAS (lcAlias) IN 0
* Get field ID
liIDT=DBC_GetIDObject(lcAlias,_DBC_Field,"products.product_id")
* Get property value
=DBC_GetProperty(lcAlias,liIDT,_DBCID_Comment,@luValueO)
?luValueO

* Clear property value
=DBC_ClearProperty(lcAlias,liIDT,_DBCID_Comment)
=DBC_GetProperty(lcAlias,liIDT,_DBCID_Comment,@luValue)
?luValue

* Set property old value
=DBC_SetProperty(lcAlias,liIDT,_DBCID_Comment,@luValueO)
* Get property value
=DBC_GetProperty(lcAlias,liIDT,_DBCID_Comment,@luValue)
?luValue

USE IN (lcAlias)
RELEASE PROCEDURE dfo.prg


See also
Expand/Collapse source code of procedure DBC_ClearProperty Source Code
LPARAMETERS lcAlias,liIDObject,liIDProp
* lcAlias    - Alias of opended DBC
* liIDObject - Object ID
* liIDProp   - Property ID


LOCAL liStart,liLen,liLenID
liStart=1 && First char

SELE (lcAlias) && Skip to DBC 
LOCATE FOR ObjectID=liIDObject && Find object
IF !FOUND() && If not found
   RETURN _DBC_ObjectNotFound && Get out
ENDIF

DO WHILE liStart<=LEN(Property)
   liLen=DFO_C4ToI(SUBS(Property,liStart,4)) && Lenght
   * This is lenght of Property ID
   liLenID=IIF(DFO_C2ToI(SUBS(Property,liStart+4,2))>256,2,1)

   * Is't finding property
   IF IIF(liLenID=1,ASC(SUBS(Property,liStart+4+2,liLenID)),;
      DFO_C2ToI(SUBS(Property,liStart+4+2,liLenID)))=liIDProp
      REPL Property WITH STUFF(Property,liStart,liLen,"")
      EXIT
   ENDIF
   liStart=liStart+liLen
ENDDO

RETURN _DBC_ObjectFound