Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print several items in output without comma
#1
Question 
Hello
I'm new to C# and have spent a good amount of time trying to find this answer to avail so I thought I would turn to the brain trust.
I need to print out several variables in output with print.it syntax.
there should be no comma in between went sent to the screen.(i want to remove comma between variables in output)
thanx for any ideas or help...

syntax is like this=> print.it ("Serial:", _catID, _serialNo);  and output must be like this =>  Serial: Hpc_356425 
#2
Code:
Copy      Help
string _catID = "Hpc";
int _serialNo = 356425;

//print.it("Serial:", _catID, _serialNo);

Console.WriteLine($"Serial: {_catID}_{_serialNo}");

I think print.it in LA has its unique syntax. At this point, you might consider using Console.WriteLine.
#3
Another approach, if Davider's doesn't work for you (perhaps there's no console to write to):
 
Code:
Copy      Help
string _catID = "Hpc";
int _serialNo = 356425;

string tempString = "Serial: " + _catID + " " + _serialNo;
print.it(tempString);


Forum Jump:


Users browsing this thread: 1 Guest(s)