Visual Basic - Spaces added when String starts with a number. - TechRepublic
Question
September 27, 2010 at 01:45 AM
martinbullock15

Visual Basic – Spaces added when String starts with a number.

by martinbullock15 . Updated 15 years, 9 months ago

Hi

Hope someone can help.

I have made a little program which lists a data from a SQL database in to a flex grid but for some reason when the String starts with a number it adds loads of white spaces in the field which the user sees (not always the same amount of spaces), i have tried just passing the String to a normal text box on the form and this comes out correct but as soon as it is displayed in to the Flex Grid it adds the white spaces.

I have tried using Trim before i pass the value to the Flex Grid with no luck.

Any suggestions would be very grateful with any sample code!!

Kind Regards

Martin

This discussion is locked

All Comments