Finding record
Posted: 23.01.2008, 14:40
Your ZeosLib DBO Version:
The IDE you are using: Lazarus
Version (and maybe patchlevel) of the IDE:
The database you are using: MySQL
Version of the database: 5.1
Used protocol:
[hr]Error description and post
I don't found function to find record in tzquery or tzreadonlyquery except 'locate'. In DAO, there are many function to find record and several criteria. For example : 'findfirst' to find record from first record, 'findnext' to find next record from current record, 'findprevious' to find previous record from current record, and 'findlast' to find record from last record position. And in DAO the criteria to find record is like filter criteria. We can find record with this possiblility :
obj.findfirst('id=''code001''');
obj.findfirst('name like ''machine*''');
obj.findnext('id=''code001'' and name like ''machine*''');
etc.
If we use grid to show record set. Find with this function doesn't reload query so just move record position to founded record. If we use filter the recordset/resultset where is not matching is not visible again.
Is ZeosLib has these function?
In question when we post, there is question 'The IDE you are using'. And MSEide+MSEgui is none. I think Martin named for IDE wiith MSEide+MSEgui is not match with marketing concept. Hardly to remember.
regards,
wahono
The IDE you are using: Lazarus
Version (and maybe patchlevel) of the IDE:
The database you are using: MySQL
Version of the database: 5.1
Used protocol:
[hr]Error description and post
I don't found function to find record in tzquery or tzreadonlyquery except 'locate'. In DAO, there are many function to find record and several criteria. For example : 'findfirst' to find record from first record, 'findnext' to find next record from current record, 'findprevious' to find previous record from current record, and 'findlast' to find record from last record position. And in DAO the criteria to find record is like filter criteria. We can find record with this possiblility :
obj.findfirst('id=''code001''');
obj.findfirst('name like ''machine*''');
obj.findnext('id=''code001'' and name like ''machine*''');
etc.
If we use grid to show record set. Find with this function doesn't reload query so just move record position to founded record. If we use filter the recordset/resultset where is not matching is not visible again.
Is ZeosLib has these function?
In question when we post, there is question 'The IDE you are using'. And MSEide+MSEgui is none. I think Martin named for IDE wiith MSEide+MSEgui is not match with marketing concept. Hardly to remember.
regards,
wahono