Click here to Skip to main content
15,908,020 members
Home / Discussions / C#
   

C#

 
GeneralRe: create a .csv file using a variable as the name Pin
DaveX8613-Oct-07 5:19
DaveX8613-Oct-07 5:19 
GeneralRe: create a .csv file using a variable as the name Pin
Dave Kreskowiak13-Oct-07 5:08
mveDave Kreskowiak13-Oct-07 5:08 
GeneralRe: create a .csv file using a variable as the name Pin
mocasu13-Oct-07 5:25
mocasu13-Oct-07 5:25 
GeneralRe: create a .csv file using a variable as the name Pin
Guffa13-Oct-07 6:27
Guffa13-Oct-07 6:27 
GeneralRe: create a .csv file using a variable as the name Pin
DaveX8613-Oct-07 5:28
DaveX8613-Oct-07 5:28 
GeneralRe: create a .csv file using a variable as the name Pin
PIEBALDconsult13-Oct-07 5:31
mvePIEBALDconsult13-Oct-07 5:31 
GeneralRe: create a .csv file using a variable as the name Pin
Christian Graus13-Oct-07 10:33
protectorChristian Graus13-Oct-07 10:33 
AnswerRe: create a .csv file using a variable as the name Pin
Guffa13-Oct-07 5:51
Guffa13-Oct-07 5:51 
mocasu wrote:
...I know how to concatenate strings! the problem is how I then refer to that "variable" when creating the .csv


So you don't know how to use a variable instead of a literal string.

Here's an example:

This is some code with a literal string:

Console.WriteLine("Hello world!");

You can put the string in a variable and use that variable in place of the literal string:

string message;<br />
message = "Hello world!";<br />
Console.WriteLine(message);


This is very basic in programming, and what you are trying to do is on a much higher level. You should start with the basics before moving on to more complex things.

---
single minded; short sighted; long gone;

AnswerRe: create a .csv file using a variable as the name Pin
PIEBALDconsult13-Oct-07 4:33
mvePIEBALDconsult13-Oct-07 4:33 
GeneralRe: create a .csv file using a variable as the name Pin
mocasu13-Oct-07 4:45
mocasu13-Oct-07 4:45 
GeneralRe: create a .csv file using a variable as the name Pin
PIEBALDconsult13-Oct-07 5:10
mvePIEBALDconsult13-Oct-07 5:10 
GeneralRe: create a .csv file using a variable as the name Pin
PIEBALDconsult13-Oct-07 5:19
mvePIEBALDconsult13-Oct-07 5:19 
GeneralRe: create a .csv file using a variable as the name Pin
mocasu13-Oct-07 5:27
mocasu13-Oct-07 5:27 
Questionlaunching programs from a windows service Pin
NikoTanghe13-Oct-07 3:29
NikoTanghe13-Oct-07 3:29 
AnswerRe: launching programs from a windows service Pin
Dave Kreskowiak13-Oct-07 4:10
mveDave Kreskowiak13-Oct-07 4:10 
QuestionHow to realize the smart indent in VC#? Pin
Seraph_summer13-Oct-07 3:01
Seraph_summer13-Oct-07 3:01 
AnswerRe: How to realize the smart indent in VC#? Pin
Steve Echols13-Oct-07 9:10
Steve Echols13-Oct-07 9:10 
Questionversion problem.. Pin
adilkazmi13-Oct-07 1:32
adilkazmi13-Oct-07 1:32 
AnswerRe: version problem.. Pin
pmarfleet13-Oct-07 1:50
pmarfleet13-Oct-07 1:50 
AnswerRe: version problem.. Pin
Dave Kreskowiak13-Oct-07 3:13
mveDave Kreskowiak13-Oct-07 3:13 
QuestionMenuStrip Pin
half-life13-Oct-07 1:17
half-life13-Oct-07 1:17 
AnswerRe: MenuStrip Pin
Dave Kreskowiak13-Oct-07 3:11
mveDave Kreskowiak13-Oct-07 3:11 
JokeRe: MenuStrip Pin
Anthony Mushrow13-Oct-07 3:38
professionalAnthony Mushrow13-Oct-07 3:38 
GeneralRe: MenuStrip Pin
half-life13-Oct-07 12:22
half-life13-Oct-07 12:22 
GeneralRe: MenuStrip Pin
Dave Kreskowiak13-Oct-07 15:12
mveDave Kreskowiak13-Oct-07 15:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.