GetBarDefs

The GetBarDefs function retrieves the current default values of the barcode.

VB declaration

Declare Function GetBarDefs(ByRef ty As Long, ByRef pc As Long, ByRef p1 As Long, ByRef p2 As Long, ByRef ht As Long, ByRef bl, ByRef it, ByRef fn As String) As Long

Where:

ty is an INTEGER to receive the default barcode type

pc is a BOOL to receive the default setting for AutoCheckDigit

p1 is an integer to receive the default value of Extra1

p2 is an integer to receive the default value of Extra2

ht is an integer to receive the default barcode font height (in points)

bl is a BOOL  to receive the default barcode font Bold state

it is a BOOL  to receive the default barcode font Italic state

fn is a String that will receive the facename of the barcode font.

Note that VB Strings that are to receive characters must be created before the function is called and must contain sufficient space to receive the characters (eg. y=String(28,vbNullChar))

C declaration

int WINAPI GetBarDefs(LPINT ptype, LPINT pchk, LPINT pex1, LPINT pex2, LPINT pfht, LPINT pbold, LPINT pital, LPSTR pfname);

Note that C char arrays that are to receive characters must be created before the function is called and must contain sufficient characters to accommodate the string, eg. Char fn[28];

More:

SetBarDefs