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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameters to a string? 1

Status
Not open for further replies.

JLizOB

Programmer
Dec 5, 2007
45
0
0
CA
I have the following code:
Code:
string line6 = "PATH {0}";
With {0} being the parameter, I can't quite figure out how to pass a value to it though. Can someone please help? Thanks!

 
Code:
string line6 = string.Format("PATH {0}", "some other string");

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top