PC Review


Reply
Thread Tools Rate Thread

Backslash concatination problem

 
 
Marina
Guest
Posts: n/a
 
      13th Feb 2007
Hi,

I'm trying to concat: "\" & variable, where variable is some string,
but VB is making it to be "\\variable".
for example if variable is "Test", vb is making it to be "\\Test"
instead of "\Test".

I've tried almost everything.
Does anyone has an idea.

Thanks a lot, Marina
(E-Mail Removed)

 
Reply With Quote
 
 
 
 
Branco Medeiros
Guest
Posts: n/a
 
      13th Feb 2007
Marina wrote:
> I'm trying to concat: "\" & variable, where variable is some string,
> but VB is making it to be "\\variable".
> for example if variable is "Test", vb is making it to be "\\Test"
> instead of "\Test".
>
> I've tried almost everything.
> Does anyone has an idea.

<snip>

I personaly never saw such behavior. Couldn't it be the the variable
was already "\Test", to begin with? Please, post some code.

Regards,

Branco.

 
Reply With Quote
 
Tiago Salgado
Guest
Posts: n/a
 
      14th Feb 2007
I've write this code and the result is correct.

Dim str As String = "Test"
str = "\" & str
Debug.Print(str)

It returns "\Test"

Post your code here, because is there some error wich is putting your return
value wrong.

--

Tiago Salgado

http://weblogs.pontonetpt.com/tiagosalgado
http://www.foruns.org
http://www.portugal-a-programar.org
http://www.revista-programar.info

"Marina" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm trying to concat: "\" & variable, where variable is some string,
> but VB is making it to be "\\variable".
> for example if variable is "Test", vb is making it to be "\\Test"
> instead of "\Test".
>
> I've tried almost everything.
> Does anyone has an idea.
>
> Thanks a lot, Marina
> (E-Mail Removed)
>
>


 
Reply With Quote
 
Larry Linson
Guest
Posts: n/a
 
      14th Feb 2007
is not \ a simple escape character?

give more detail about your exact code, sweetheart




On Feb 13, 5:51 am, "Marina" <Marina...@gmail.com> wrote:
> Hi,
>
> I'm trying to concat: "\" & variable, where variable is some string,
> but VB is making it to be "\\variable".
> for example if variable is "Test", vb is making it to be "\\Test"
> instead of "\Test".
>
> I've tried almost everything.
> Does anyone has an idea.
>
> Thanks a lot, Marina
> mar...@nogacom.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with concatination result. Last digit change to 0 =?Utf-8?B?RGF2Q2Fu?= Microsoft Excel Worksheet Functions 1 24th Aug 2007 11:48 PM
Backslash concatenation problem in VB.NET Marina Microsoft VB .NET 6 13th Feb 2007 07:43 PM
Regional and Language Options Korean Backslash Problem =?Utf-8?B?Qi5NaWx0Z2Vu?= Windows XP Help 0 3rd Feb 2006 05:49 PM
string concatination problem =?Utf-8?B?aHV6eg==?= Microsoft Dot NET 2 18th Mar 2005 07:18 PM
Concatination (I think?) Sue Microsoft Access Reports 4 13th Feb 2004 03:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:36 AM.