If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > can't trace status = 6 (urgent)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-04, 23:57
olapworm olapworm is offline
Registered User
 
Join Date: Aug 2004
Posts: 3
Question 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!

Thanks.

Joel
Reply With Quote
  #2 (permalink)  
Old 09-01-04, 07:47
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
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
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On