Click to See Complete Forum and Search --> : messagebox showing same output values ???


karthigesh
February 11th, 2003, 01:12 AM
is there anything wrong with the portion of program below, cos i always get everything as the same value in hexadecimal in the output messagebox. Everything ,means DEVID , ACK and CHECKSUM, all show the same value...


string s = string.Format("{0,2:x}{0,2:x} DEVID:{0,2:x} ACK: {0,2:x} CHECKSUM:{0,2:x}{0,2:x}",data[0], data[1], data[2], data[3], data[4], data[5]);

thanks ...
karthik

pareshgh
February 11th, 2003, 01:13 PM
hi,
i don't think your code has any type of problem. for this statements its not a problem.

may be one of your functions are returning some odd values.

do you have a .NET debugger ?
If you are using VS.NET then you should have the .NET debugger...atleast.

thanx
Paresh