concat not found

  • Thread starter Thread starter Bryan Valencia
  • Start date Start date
B

Bryan Valencia

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.)
 
Bryan said:
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.
 
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.)
 
Thanks - after a LOT of playing I found the correct page in the help.

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