TDataRow and ADO questions
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Hi friends,
The new class TDataRow is very exciting. We need to move to ADO as SQLRDD is a patch and does not work fine. I have some questions please:
First of all, I would appreciate a sample of TDataRow for adding a new record, consult a record, modify a record, locate and delete, please.
Second, how do I load an array with a field from the Recordset so as to have, i.e., a combobox?. Here is how I do now:
Third, what is the equivalent for recordset DO WHILE !EOF() and, also, Dbskip()?.
Thank you a lot!.
The new class TDataRow is very exciting. We need to move to ADO as SQLRDD is a patch and does not work fine. I have some questions please:
First of all, I would appreciate a sample of TDataRow for adding a new record, consult a record, modify a record, locate and delete, please.
Second, how do I load an array with a field from the Recordset so as to have, i.e., a combobox?. Here is how I do now:
- Code: Select all Expand view
- SELECT ("TIPO")
DbGoTop()
DO WHILE !Eof()
aAdd( aTipos, Field->TIPO )
dbSkip()
ENDDO
DbGoTop()
REDEFINE COMBOBOX cTipo ;
ITEMS aTipos ID 700 OF oFld:aDialogs[ 1 ]
Third, what is the equivalent for recordset DO WHILE !EOF() and, also, Dbskip()?.
Thank you a lot!.