From 0c86b070415c797abe3b068942f05baed57d85d6 Mon Sep 17 00:00:00 2001 From: mgobat <45852490+mgobat@users.noreply.github.com> Date: Wed, 7 Jul 2021 13:24:06 -0500 Subject: [PATCH] Fix bug with scanning barcodes with trailing blank. Don't trim barcodes, Rather, replace all spaces with "%20". --- Form1.vb | 5 +++-- My Project/AssemblyInfo.vb | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Form1.vb b/Form1.vb index 7295419..455d47e 100644 --- a/Form1.vb +++ b/Form1.vb @@ -172,7 +172,7 @@ Public Class Form1 'v. 2.3: dlgSettings.UseEXDialog = True to enable print dialog selection in Windows 7 'v. 2.2: corrects spacing & punctuation errors in incoming call numbers (for TML); 'v. ...: - Dim somVersion As String = "8.1.1" + Dim somVersion As String = "8.1.2" Dim javaClassName As String = "almalabelu2" 'the java class name Dim javaSDKName As String = "alma-sdk.1.0.jar" 'the Ex Libris SDK for web services Dim javaTest As String = "javatest" 'java class that reports presence and version of java @@ -1214,7 +1214,8 @@ Public Class Form1 Exit Sub End If - fixedBarcode = Replace(Trim(InputBox.Text), "+", "%2B") + fixedBarcode = Replace(InputBox.Text, "+", "%2B") + fixedBarcode = Replace(fixedBarcode, " ", "%20") svcRequest = Trim(apiURL.Text) & Trim(apiMethod.Text.Replace("{item_barcode}", fixedBarcode)) & "&apikey=" & Trim(apiKey.Text) lastbc = InputBox.Text diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index 846dfab..308ae18 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices - + @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + +