Calls to BarCodewF create a Font barcode, returning the barcode character in the sOut string..
Declare Function BarCodewF Lib “dlsbar34” (ByVal sIn as String, n as Long, sOut As String, fname As String, fht As Long) As Long
Where sIn is the barcode data. and n is length of the data string. The sOut string must exist and be long enough to contain the barcode characters returned. The string may be space filled using, for example,
sOut=String(255,” “)
prior to the call.
The fname and fht parameters return the name and height of the barcode font specified in the FbarcodeSetup macro. These parameters must exist and the fname string must be large enough to receive 24 characters. However, as the results do not have to be used!!
The function returns the number of characters in sOut, or a negative value if an error has occurred. If a negative value is returned changing the sign provides an error number that may be passed to ErrorMess() to obtain an error message.
More: