Click here to Skip to main content
15,909,193 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reading a string line by line? Pin
Guffa22-Sep-05 8:36
Guffa22-Sep-05 8:36 
AnswerRe: Reading a string line by line? Pin
Heath Stewart22-Sep-05 8:37
protectorHeath Stewart22-Sep-05 8:37 
Question.Net control behaves differently between Web and Windows application Pin
Handy Su22-Sep-05 7:59
Handy Su22-Sep-05 7:59 
AnswerRe: .Net control behaves differently between Web and Windows application Pin
Heath Stewart22-Sep-05 8:03
protectorHeath Stewart22-Sep-05 8:03 
GeneralRe: .Net control behaves differently between Web and Windows application Pin
Dave Kreskowiak22-Sep-05 8:23
mveDave Kreskowiak22-Sep-05 8:23 
GeneralRe: .Net control behaves differently between Web and Windows application Pin
Heath Stewart22-Sep-05 8:33
protectorHeath Stewart22-Sep-05 8:33 
Questionproblem with a HEX array Pin
cue_ball22-Sep-05 7:42
cue_ball22-Sep-05 7:42 
AnswerRe: problem with a HEX array Pin
Heath Stewart22-Sep-05 8:09
protectorHeath Stewart22-Sep-05 8:09 
You could do a simple loop:
string input = "ABCD";
string output = string.Empty;
for (int i = input.Length - 2; i >= 0; i++)
{
  output += input.Substring(i, 2);
}
There's lots of ways you can do this, since it's simple string parsing. The fact that the input string is in hexadecimal is moot if you never need to convert it. Now, if you actually wanted to convert it to numbers you could do something like the following:
string input = "ABCD";
int high = int.Parse(input.Substring(0, 2), NumberStyles.AllowHexSpecifier);
int low = int.Parse(input.Substring(2, 2), NumberStyles.AllowHexSpecifier);


This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
QuestionDataGridViewCheckBoxColumn Pin
Drew McGhie22-Sep-05 7:22
Drew McGhie22-Sep-05 7:22 
AnswerRe: DataGridViewCheckBoxColumn Pin
Drew McGhie22-Sep-05 7:59
Drew McGhie22-Sep-05 7:59 
QuestionMore Efficient Code Pin
Debs*22-Sep-05 6:58
Debs*22-Sep-05 6:58 
AnswerRe: More Efficient Code Pin
therealmccoy22-Sep-05 7:03
therealmccoy22-Sep-05 7:03 
AnswerRe: More Efficient Code Pin
Robert Rohde22-Sep-05 8:06
Robert Rohde22-Sep-05 8:06 
GeneralRe: More Efficient Code Pin
Niklas Ulvinge22-Sep-05 8:51
Niklas Ulvinge22-Sep-05 8:51 
GeneralRe: More Efficient Code Pin
Robert Rohde22-Sep-05 9:05
Robert Rohde22-Sep-05 9:05 
GeneralRe: More Efficient Code Pin
Debs*22-Sep-05 10:30
Debs*22-Sep-05 10:30 
GeneralRe: More Efficient Code Pin
Niklas Ulvinge23-Sep-05 0:42
Niklas Ulvinge23-Sep-05 0:42 
AnswerRe: More Efficient Code -SOLVED Pin
Debs*23-Sep-05 7:11
Debs*23-Sep-05 7:11 
QuestionIEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 5:28
daouner22-Sep-05 5:28 
AnswerRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart22-Sep-05 6:29
protectorHeath Stewart22-Sep-05 6:29 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 7:25
daouner22-Sep-05 7:25 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 10:00
daouner22-Sep-05 10:00 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart22-Sep-05 11:06
protectorHeath Stewart22-Sep-05 11:06 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 7:19
daouner23-Sep-05 7:19 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart23-Sep-05 7:27
protectorHeath Stewart23-Sep-05 7:27 

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.