johnCronin
Technical User
For reasons beyond my control, a customer has created item numbers with leading spaces. This works fine in Macola, they have been using these item numbers for years.
However, as soon as I try to reference the item number in flexibility the leading space is gone.
A very simple example demonstrates the problem.
Private Sub ItmNo_LoseFocus(AllowLoseFocus As Boolean)
ItmNo.Text = ItmNo.Text
End Sub
I the LoseFocus event is removed, the program works fine and the leading space remains.
Now I know I can work around this problem with KeyPress event and determine if the item number starts with a space but I am hoping someone has a solution and maybe an explanation.
However, as soon as I try to reference the item number in flexibility the leading space is gone.
A very simple example demonstrates the problem.
Private Sub ItmNo_LoseFocus(AllowLoseFocus As Boolean)
ItmNo.Text = ItmNo.Text
End Sub
I the LoseFocus event is removed, the program works fine and the leading space remains.
Now I know I can work around this problem with KeyPress event and determine if the item number starts with a space but I am hoping someone has a solution and maybe an explanation.