Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a multisegment key containing a date in VB4 using API 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Have a file that has a multisegment key:
keynumber is 4
key consists of segments
q as string *1
qdate as btrievedate
How do I code in VB4 to use this key using API calls, e.g what should the declare be?
 
Are you looking for the KeyBuffer declaration? If so it's something like:
type btrievedate
bDay As Byte
bMonth As Byte
iYear As Integer
End Type
public type Key4
q as string *1
qdate as btrievedate
end type
You would then use the UDT in the BTRCALL Get(First,Next,Prev,Last,Equal,etc) operation.


mirtheil@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top