Visual Basic Notes
The following are some things to be aware when you are developing Pervasive PSQL applications with Visual Basic.
Visual Basic has a known byte alignment issue with user-defined data types. You can also refer to the section Visual Basic regarding the Btrieve API for information about this issue and using the PAln32.DLL, Pervasive’s Btrieve Alignment DLL.
a.
b.
Type Byte2
  field1 byte
  field2 byte
End Type
Type Rec
  Size As Byte2
  Name As String*30    ‘SQL Mask = x30
  Salary As String*10  ‘SQL Mask = zzzzzzz.99
End Type
c.
Dim instofRec As New Rec
d.
instofRec.Name=”Jeff”
e.