469,291 Members | 1,719 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,291 developers. It's quick & easy.

concat not found

Ok, I tried to use the concat function. It's in the Help, but it claims it
can't find the namespace that contains 'concat'. You'd think there'd be a
note in the help system if I have to use some library...

Can anyone guide me?

(I told you all I was new.)
Nov 16 '05 #1
3 1289
Bryan Valencia wrote:
Ok, I tried to use the concat function. It's in the Help, but it
claims it can't find the namespace that contains 'concat'. You'd
think there'd be a note in the help system if I have to use some
library...

Can anyone guide me?

(I told you all I was new.)


Hi Bryan,

Concat is a static method of the string class, are you perhaps
attempting to use it from a string instance ?

i.e yourStringVar.Concat(....);

if so then what you need to do is ...

string newString = string.Concat(yourstringVar,"blah");

Regards Tim.
Nov 16 '05 #2
C# is case sensitive so it Concat and its a member of the string class

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Ok, I tried to use the concat function. It's in the Help, but it claims it
can't find the namespace that contains 'concat'. You'd think there'd be a
note in the help system if I have to use some library...

Can anyone guide me?

(I told you all I was new.)

Nov 16 '05 #3
Thanks - after a LOT of playing I found the correct page in the help.

I just had to use string.Concat(blah, blah, blah)

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
C# is case sensitive so it Concat and its a member of the string class

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Ok, I tried to use the concat function. It's in the Help, but it claims it can't find the namespace that contains 'concat'. You'd think there'd be a
note in the help system if I have to use some library...

Can anyone guide me?

(I told you all I was new.)

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Gerald Aichholzer | last post: by
12 posts views Thread by Marek Lewczuk | last post: by
16 posts views Thread by Jacky | last post: by
8 posts views Thread by Doug Stiers | last post: by
1 post views Thread by Trint Smith | last post: by
4 posts views Thread by Martin Evans | last post: by
2 posts views Thread by cuddles | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.