CODB class are destined to select objects by assertion and represenation its in table-navigationy mode.
APPEND | Append new object. |
BOF | Check BOF. |
CLOSE | Cancel job. |
CODBIDLIST | Constructor CODBIDLIST class. |
DELETE | Delete current object. |
DEPOSITORY | Returns object CDOBDEPOSITORY, what <::sMetaName> belong. |
DICTIONARY | Returns object CDOBDICTIONARY, what <::sMetaName> belong. |
EOF | Check EOF. |
GETBLANK | Returns object of class <sMetaName> |
GETEXPR | Compute expression for current object. |
GETVALUE | Get values of attribute. |
GOBOTTOM | Goes to last position. |
GOTO | Goes to the new position. |
GOTOP | Goes to first position. |
IDEXIST | Check object a existence storehouse. |
LOCATE | Locate first object, what equal some condition. |
LOCATEREST | Restore locate with old condition. |
RECNO | Returns current position. |
REFRESH | Refresh object list. |
SETINDEX | Set index. |
SETWHERE | Set new condition to object selection. |
SKIP | Move relative to the current position. |
UPDATE | Update object. |
Append(<oData>) --> <sDataID>
Append() appends new object <oData> to storehouse as object of class <sMetaName> and returns objects identifier <sDataID>.
Class <sMetaName> - that class what was passed to constructor of CODBIDLIST.
<::Error> contain error descriptions if araised.
Close() --> TRUE
Close() closes dictionary or depository and canceles job.
CODB_IdList(<oDbm>,<sMetaName>,<nIndex>,<sName>,<sWhereExpr>,<nCount>) --> CODBIDLIST object
CODB_IdList() inits new CODBIDLIST object and returns it.
<oDbm> | Object, object of class CODBDICTIONARY or CODBDEPOSITORY |
<sMetaName> | String, the metaclass name or identifier of keeping class. |
<nIndex> | Numeric, the index number |
<sName> | String, the value of attribute <Name>; list kept objects whouse propoerties <Name> is equal <sName> |
<sWhereExpr> | String, the searching condition |
<nCount> | Numeric, the maximize count objects in list |
Returns : | Method returns new CODBIDLIST object. |
Delete() --> TRUE || FALSE
Delete() returns TRUE if current object deleted from a dictionary or from a depository. In other returns FALSE.
Depository() --> <oDep>
Depository() returns <oDep> object CDOBDEPOSITORY, what <::sMetaName> belong.
Dictionary() --> <oDict>
Dictionary() returns <oDict> object CDOBDICTIONARY, what <::sMetaName> belong.
GetBlank() --> <oData>
GetBlank() returns <oData> - the object of class <sMetaName>. All atributes <oData> filled values by default.
Class <sMetaName> - that class what was passed to constructor of CODBIDLIST.
GetExpr(<sExpr>) --> <vData>
GetExpr() compute expression for current object and returns result <vData>.
GetValue([<sAttrName>]) --> <vData>
GetValue() returns attribute value <vData> or if <sAttrName> not specified returns whole object.
GoBottom() --> FALSE GotoBottom() --> FALSE
GoBottom() and GotoBottom() goes to last position.
GoTop() --> FALSE GotoTop() --> FALSE
GoTop() and GotoTop() goes to first position.
IdExist(<sDataID>) --> TRUE || FALSE
IdExist() returns TRUE if object with identifier <sDataID> exist into dictionary or depository.
Locate(Expr) --> TRUE || FALSE
Locate() returns TRUE if object, what equal condition <Expr> is locate.
LocateRest() --> TRUE || FALSE
LocateRest() returns TRUE if object, what equal previouse condition is locate.
Refresh() --> NIL
Refresh() updates object list. Every object in this list is content strart conditions <sName> and <sWhereExpr>.
<sName> and <sWhereExpr> - that parameters what was passed to constructor of CODBIDLIST.
<::Error> contain error descriptions if araised.
SetIndex(<vIndex>) --> TRUE || FALSE
SetIndex() returns TRUE if index with number <vIndex> or with name <vIndex> setted. In other returns FALSE.
SetWhere(<sWhereExpr>) --> NIL
SetWhere() sets new condition <sWhereExpr> to object selection.
Skip([<nSkip>]) --> NIL
Skip() moves either forward or backward relative to the current position.
If <nSkip> not specified, it is 1.