Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports .NET 2.0: C# Get HashTable Value by Key

Tuesday, March 27, 2007

C# Get HashTable Value by Key

htSegmentFields.Add("MSH","23");

string strSegmentName = "MSH";
int intSegmentFieldsMax = 0;
intSegmentFieldsMax = Convert.ToInt16(htSegmentFields[strSegmentName].ToString());

intSegmentFieldsMax would equal 23 using the command above to access the value by the key "MSH".

0 Comments:

Post a Comment

<< Home

Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports