質問

getnextextedended(36)操作をBtrieveで動作させるのに苦労しています。ステータスコード62を返すコールは次のとおりです。

    intStatus = BTRCALL(B_GETNEXTEXTENDED, _
                        m_byteFilePosBlk, _
                        m_byteRecordBuffer(0), _
                        lngDataBufferLen, _
                        ByVal strKeyBuffer, _
                        intKeyBufferLen, _
                        m_intKeyNum)

コードを検索した後、コードがm_byterecordbufferに保存されているデータバッファーのエラーを示していることを示す多くのサイトを見つけました。その変数に保存されている値は次のとおりです。

m_byteRecordBuffer(0)    16    'These two bytes indicate the total size of'  
m_byteRecordBuffer(1)    0     'data buffer' 

m_byteRecordBuffer(2)    67    'These two bytes indicate the characters 'UC''
m_byteRecordBuffer(3)    85

m_byteRecordBuffer(4)    0     'These two bytes indicate the maximum reject' 
m_byteRecordBuffer(5)    0     'count, which if set to 0 defaults to 4,095' 

m_byteRecordBuffer(6)    0     'These two bytes indicate the number of terms'
m_byteRecordBuffer(7)    0     'which has been set to zero'

m_byteRecordBuffer(8)    1     'These two bytes indicate the number of' 
m_byteRecordBuffer(9)    0     'records to return'

m_byteRecordBuffer(10)  1     'These two bytes indicate the number of fields'
m_byteRecordBuffer(11)  0     'to extract'

m_byteRecordBuffer(12)  2     'These two bytes indicate the length of the'
m_byteRecordBuffer(13)  0     'field to extract'

m_byteRecordBuffer(14)  1     'These two bytes indicate the field offset'
m_byteRecordBuffer(15)  0

簡単なものが足りないことを願っています。どんな助けも大歓迎です。

役に立ちましたか?

解決

レコードバッファで、UC文字の位置を交換してみてください。
位置2および「C」(67)に「U」(85)を位置3に置きます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top