DBC_ConvertPropertyToValue Procedure
This function convert DBC property value to value.
Note
This function is internal.
=
DBC_ConvertPropertyToValue
Parameter
liIDProp
Property ID
Type Integer
Direction Input
Property ID. For a list of properties, see DBC_EnumProperty().
lcValue
DBC property value
Type Character
Direction Input
Return value Integer/String/Boolean
If is value of liIDProp unknown, then return value is the same as lcValue.
Example
See to source code of DBC_GetProperty().


See also
Expand/Collapse source code of procedure DBC_ConvertPropertyToValue Source Code
LPARAMETERS liIDProp,lcValue
* liIDProp - Property ID
* luValue  - Property value


RETURN IIF(INLIST(liIDProp,_DBCID_Comment,_DBCID_Path,;
           _DBCID_RuleExpression,_DBCID_RuleText,_DBCID_InsertTrigger,;
           _DBCID_UpdateTrigger,_DBCID_DeleteTrigger,_DBCID_PrimaryKey,;
           _DBCID_DefaultValue,_DBCID_Caption,_DBCID_ChildTag,;
           _DBCID_ParentTable,_DBCID_Database),LEFT(lcValue,LEN(lcValue)-1),;
       IIF(INLIST(liIDProp,_DBCID_ParentTag,_DBCID_DataSource,;
            _DBCID_ConnectString,_DBCID_Password,_DBCID_UserID,;
              _DBCID_ParameterList,_DBCID_ConnectName,_DBCID_SQL,;
           _DBCID_Tables,_DBCID_UpdateName,_DBCID_DataType,;
           _DBCID_DisplayClass,_DBCID_DisplayClassLibrary,;
           _DBCID_Format,_DBCID_InputMask,;
           _DBCID_DBCEventFileName),LEFT(lcValue,LEN(lcValue)-1),;
       IIF(INLIST(liIDProp,_DBCID_SubType,_DBCID_DispLogin,;
           _DBCID_Transactions,_DBCID_BatchUpdateCount,_DBCID_SourceType,;
           _DBCID_UpdateType,_DBCID_WhereType),ASC(lcValue),;
       IIF(INLIST(liIDProp,_DBCID_FetchSize,_DBCID_MaxRecords),;
           IIF(lcValue=CHR(255)+CHR(255)+CHR(255)+CHR(255),-1,DFO_C4ToIRev(lcValue)),;
       IIF(INLIST(liIDProp,_DBCID_ConnectTimeout,_DBCID_IdleTimeout,_DBCID_QueryTimeout,;
           _DBCID_WaitTime,_DBCID_PacketSize,_DBCID_UseMemoSize,;
           _DBCID_Version),DFO_C4ToIRev(lcValue),;
       IIF(INLIST(liIDProp,_DBCID_Prim_Cand,_DBCID_Asynchronous,_DBCID_BatchMode,;
           _DBCID_DispWarnings,_DBCID_FetchMemo,_DBCID_ShareConnection,;
           _DBCID_SendUpdates,_DBCID_KeyField,_DBCID_Updatable,;
           _DBCID_CompareMemo,_DBCID_FetchAsNeeded,_DBCID_Offline,;
           _DBCID_Prepared,_DBCID_DBCEvents,_DBCID_AllowSimultaneousFetch,;
           _DBCID_DisconnectRollback),ASC(lcValue)=1,lcValue))))))