Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String concatenation problem

Status
Not open for further replies.

sanders720

Programmer
Aug 2, 2001
421
US


xCompOccurrence.Name = "36570-0101:2XXX"


CompStr = Microsoft.VisualBasic.Left(xCompOccurrence.Name, chp - 1) + (Microsoft.VisualBasic.Right(Str(Q), Len(Q - 1))) + Microsoft.VisualBasic.Right(xCompOccurrence.Name, Len(xCompOccurrence.Name) - chp)

CompStr = "36570-0101: 2XXX"

I am trying to manipulate this data. These variables are being created for comparitive purposes.

About here: + (Microsoft.VisualBasic.Right(Str(Q), Len(Q - 1))) +

A speca is being added. You can see the space after the :. I've tried a few things at the string creation to elliminate the first space after the string conversion without any luck.

Any help with this would be greatly appreciated.
 
we really need to know what Q and chp are?

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Or use IndexOf to find the position of the space and use the Remove Function

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top