|
CRecordset - Move(0)
|
|||
---|---|---|---|
#18+
Люди помогите новичку. хочу бегать (Move) по набору пишу CDatabase db; db.Open("ODBCKadr",FALSE,FALSE,"ODBC;UID=vvv;PWD=vvv"); CRecordset cr(&db); cr.Open(CRecordset::forwardOnly,"select * from dcc_org",CRecordset::readOnly); //cr.MoveFirst(); // тут ясное дело ругается CDBVariant var; short index=1; while(!cr.IsEOF()) { cr.GetFieldValue(index,var); AfxMessageBox(*var.m_pstring); cr.MoveNext(); } cr.Close(); db.Close(); при CRecordset::forwardOnly-ругается(это понятно) при Crecordset::snapshot-пришет типа(No column where bound prior to calling SQLFetchScrall/SQLExtendFetch) Вопрос ? чо надо сделать ... |
|||
:
Нравится:
Не нравится:
|
|||
05.03.2003, 10:03 |
|
CRecordset - Move(0)
|
|||
---|---|---|---|
#18+
www.firststeps.ru ... |
|||
:
Нравится:
Не нравится:
|
|||
05.03.2003, 12:36 |
|
|
start [/forum/topic.php?fid=57&msg=32115440&tid=2036420]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
29ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 267ms |
total: | 390ms |
0 / 0 |