Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004

    Question Unanswered: can't trace status = 6 (urgent)

    Hi Guys,

    Need your help here, I really don't know what to do with this.
    When I'm in Visual Basic Editor and run the program, it works
    fine no error messages. But when I make the exe file then run
    it I get the error status = 6 which is invalid key number!

    I've checked the variable, assigned zero before calling the btrcall function
    just to make sure that my KEY NUMBER is correct, nothing happens the
    same status.

    I'm using API in Visual Basic and issuing a command GET GREATER THAN
    OR EQUAL. Below is the sample code:

    Public Function Wspnitem_GetGrEq() As Integer
    BufLen = WspnitemStatSpec.RecLen
    KeyBufLen = Len(WspnitemKeyBuf0)
    WspnitemKeyNum = 0
    WspnitemStatus = BTRCALL(BGETGRTREQ, WspnitemPosBlk, WspnitemBuffer, BufLen, ByVal WspnitemKeyBuf0, KeyBufLen, WspnitemKeyNum)
    Wspnitem_GetGrEq = WspnitemStatus
    End Function

    I really need your help guys! Appreciate any inputs!



  2. #2
    Join Date
    Dec 2001
    Provided Answers: 4
    How many keys does the file have? Is the EXE opening the same copy of the data file as the program in the IDE?
    Mirtheil Software
    Certified Pervasive Developer
    Certified Pervasive Technician
    Custom Btrieve/VB development
    I do not answer questions by email. Please post on the forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts