Advertisement

05.05.2008 at 07:27PM PDT, ID: 23378350
[x]
Attachment Details

GetEqual and GetGreaterOrEqual in Btrieve

Asked by mike1reynolds in Btrieve 4GL Database

Tags: Pervasive, Btrieve, VB.NET

Using Btrieve Classes for .NET v2, I'm able to open tables and step through them in different index orders, but only from the start. When I use GetEqual or GetGreaterOrEqual I can only step a dozen records forwards before it hangs the thread so badly that the debugger can't break execution. If I step backwards I can only go two records. If I use GetFirst I can step forward indefinitely.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
Public Class Form1
    Inherits System.Windows.Forms.Form
 
    Private m_oDaysheet As New Daysheet
 
    Private Sub Button_Search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_Search.Click
        m_oDaysheet.Search(TextBox_Search.Text)
        Dim rc As Integer = m_oDaysheet.Open("z:\apex\umi\daysheet.dat")
        If rc > 0 Then MsgBox(rc)
        m_oDaysheet.GetGreaterOrEqual()
        If rc > 0 Then MsgBox(rc)
        Display()
    End Sub
 
 
 Public Class Daysheet
    Protected m_record As DaysheetRec
    Protected m_type As Type
 
    Protected m_posblk(128) As Byte
    Protected m_data(334) As Byte
    Protected m_dataLength As Int16
    Protected m_keyBuf(128) As Byte
    Protected m_fname() As Byte
    Protected m_keyNum As Int16 = 1
    Protected m_keyBufLen As Int16
    Protected m_ptr As System.IntPtr
 
    Public Sub Search(ByVal sSearch As String)
        m_keyBuf = Encoding.ASCII.GetBytes(sSearch)
    End Sub
 
 
    Public Function GetEqual() As Int16
        Dim rc As Int16 = Native.BtrCall(Operation.GetEqual, m_posblk, m_ptr, m_dataLength, m_keyBuf, m_keyBufLen, m_keyNum)
        m_record = Marshal.PtrToStructure(m_ptr, GetType(DaysheetRec))
        Return rc
    End Function
 
 
 
    Public Function Open(ByVal sTable As String)
        Dim rc As Int16
 
        m_keyBufLen = 128
 
        m_fname = Encoding.ASCII.GetBytes(sTable)
        m_data(0) = 0
        m_dataLength = 0
 
        rc = Native.BtrCall(Operation.Open, m_posblk, m_data, m_dataLength, m_fname, m_fname.Length, m_keyNum)
 
        If rc = 0 Then
            m_dataLength = Marshal.SizeOf(m_record)
            m_ptr = Marshal.AllocCoTaskMem(m_dataLength)
            Marshal.StructureToPtr(m_record, m_ptr, True)
        End If
 
        Return rc
    End Function
End Class
[+][-]05.05.2008 at 08:47PM PDT, ID: 21504631

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 04:09PM PDT, ID: 21511746

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 06:56PM PDT, ID: 21512612

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 05:15AM PDT, ID: 21515504

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 12:37PM PDT, ID: 21519658

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 01:35PM PDT, ID: 21520155

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 05:52PM PDT, ID: 21521575

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 08:55PM PDT, ID: 21522221

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 02:55PM PDT, ID: 21528810

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:21PM PDT, ID: 21528951

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:30PM PDT, ID: 21529004

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:39PM PDT, ID: 21529060

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:40PM PDT, ID: 21529062

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:47PM PDT, ID: 21529098

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:51PM PDT, ID: 21529116

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 04:00PM PDT, ID: 21529156

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 04:51PM PDT, ID: 21529471

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 06:05PM PDT, ID: 21529734

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 06:05PM PDT, ID: 21529738

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 06:07PM PDT, ID: 21529747

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 07:25PM PDT, ID: 21530055

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 05:05AM PDT, ID: 21531905

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 06:23PM PDT, ID: 21537485

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 06:42PM PDT, ID: 21537515

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 06:14AM PDT, ID: 21538928

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 02:03PM PDT, ID: 21559276

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 02:08PM PDT, ID: 21559307

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 02:19PM PDT, ID: 21559366

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Btrieve 4GL Database
Tags: Pervasive, Btrieve, VB.NET
Sign Up Now!
Solution Provided By: BillBach
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.13.2008 at 05:52PM PDT, ID: 21560460

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:04PM PDT, ID: 21560489

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 08:13PM PDT, ID: 21587846

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628