Do not let any software impress you!

Only let it convince your intellect.
Slider img 1
Do not look for a business paradise!

It is a waste of time.
Slider img 2
Only yourself can push you uphill.

There is no easy road to prizes.
Slider img 3
Productivity is the name of the game.

And you have to conquer it.
Slider img 4
As long as you understand it,

you will start to build your know-how.
Slider img 5
We can help with that.

We have the tools and the method.
Slider img 6

Recordset handling predefined procedures and functions



       TNext ( t )


This procedure goes to the next record of recordset t.

       TPrior ( t )


This procedure goes to the prior record of recordset t.

       TFirst ( t )


This procedure goes to the first record of recordset t. The recordset is a query or table.

       TLast ( t )


This procedure goes to the last record of recordset t.

       TEOF ( t )


This function returns (1) if we have reached the “end of file“ of recordset t.

       TBOF ( t )


This function returns (1) if we have reached the “begin of file“ of recordset t.

       TPrepare ( q )


This procedure prepares the query q for execution.

       TRecordCount ( t )


This function returns the count of records of the recordset t.

       TRecNo ( t )


This function returns the record number (starting from 1) of the recordset t.

       TGetFldTbl ( t, fieldname )


This function returns the value of the field fieldname of the recordset t. The field value comes directly from the physical table.

       TGetFld ( t, fieldname )


This function returns the value of the field fieldname of the recordset t.

       TSetFldTbl ( t, fieldname, fieldvalue )


This procedure sets the value of the field fieldname as fieldvalue. Then, we execute the change to the physical table.

       TSetFld ( t, fieldname, fieldvalue )


This procedure sets the value of the field fieldname as fieldvalue.

       TEdit ( t )


This procedure sets the current record of recordset t in editing mode.

       OpenApplTable ( tablename )


This function returns the recordset of the tablename. Be careful. This is a server-side call. Tables are not allowed to open in clients.

       QueryByName ( qname )


This function returns the handle of the query with the name qname.

       RunEmbSQL ( qname, p1, p2, ..., p12 )


This procedure executes the query with the name qname. The parameters p1,..p12 are optional in case the query is a parameterized query.

       SeekUIndex ( t, uvalue )


This function returns (1) if the seek to recordset t with unique key value uvalue is successful. Otherwise returns (0).

       TSeek ( t, indexname, val )


This function returns (1) if the seek to recordset t with indexname value uvalue is successful. Otherwise returns (0).

       TSetParam ( q, param, val )


This procedure sets to the parameter param of the query recordset q the value val. That is in case we have a significant number of parameters (over 10).

       TExecute ( q )


This procedure executes the query with handle q. TSetParam can set parameters.

       FreeEmbSQL ( qname )


This procedure closes and frees the query with the name qname.

       TAppend ( t )


This procedure sets the table recordset t in appending a new record mode.

       TPost ( t )


The above procedure posts all the changes of the previous TAppend or TEdit procedures. With all of the corresponding TSetFld calls.

       TDelete ( t )


This procedure deletes the current record of table t.

@hid1
       TSetUniqueField


       TSetDataEvents


       TCreateClientStart


       TAddFld


TCreateClientEnd

TSetName

TFreeClientDataSet

TAddIndex

TMoveData

TEmptyData

TIndexName

TGotoCurRow

ExportTable

ImportTable

ExportSchema

ExportSysSchema

ImportSchema

TGetCurRow

SaveToClientDataSet

ParamsEmbSQL

PrepareEmbSQL

OpenConnTable

OpenClientTable

TableByName

CloseEmbSQL

NameEmbSQL

@hid2