Click here to Skip to main content
15,919,613 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Read a .doc in C# Pin
Kythen26-Feb-10 12:34
Kythen26-Feb-10 12:34 
QuestionCrystal Report XI issue Pin
Raza Hussain25-Feb-10 20:47
Raza Hussain25-Feb-10 20:47 
AnswerRe: Crystal Report XI issue Pin
Mohammad Dayyan25-Feb-10 20:57
Mohammad Dayyan25-Feb-10 20:57 
GeneralRe: Crystal Report XI issue Pin
Raza Hussain28-Feb-10 23:11
Raza Hussain28-Feb-10 23:11 
Questionblood Pressure Pin
Jassim Rahma25-Feb-10 20:44
Jassim Rahma25-Feb-10 20:44 
AnswerMessage Closed Pin
25-Feb-10 20:53
stancrm25-Feb-10 20:53 
GeneralRe: blood Pressure Pin
Jassim Rahma25-Feb-10 20:56
Jassim Rahma25-Feb-10 20:56 
AnswerRe: blood Pressure Pin
AspDotNetDev25-Feb-10 21:55
protectorAspDotNetDev25-Feb-10 21:55 
So, the 99/99 is the systolic/diastolic blood pressure which may be for either the left or right arm, but sometimes for both arms?

I'd use a tab control that contains two tabs. One tab would say "Left Arm" and the other would say "Right Arm". Each tab would have a label that says "Systolic / Diastolic" and a MaskedTextBox with the mask set to "990/990". I believe "9" means "digit is optional" and "0" means "digit is required". That would allow the user to enter a number between 0 and 999 for the systolic value and for the diastolic value. That would also allow the user to enter a blood pressure for the left arm and/or the right arm.

As far as storing it in the database, you could make it complicated, but I'd just keep two varchar fields (one for the left arm and one for the right). One field could be called LeftArmPressure and the other RightArmPressure. You could store each as string like this: "120/80". Then you just serialize/parse as necessary. If you wanted, you could create four fields (LeftSystolic, LeftDiastolic, RightSystolic, RightDiastolic) or you could normalize the field into a new table that points back to your primary table, but that is more complicated than it needs to be. Unless you need indexing on both the systolic and diastolic (unlikely), I'd just go with the two fields.
GeneralRe: blood Pressure Pin
Jassim Rahma26-Feb-10 18:31
Jassim Rahma26-Feb-10 18:31 
GeneralRe: blood Pressure Pin
AspDotNetDev26-Feb-10 18:48
protectorAspDotNetDev26-Feb-10 18:48 
AnswerRe: blood Pressure Pin
Luc Pattyn25-Feb-10 22:22
sitebuilderLuc Pattyn25-Feb-10 22:22 
GeneralRe: blood Pressure Pin
AspDotNetDev25-Feb-10 23:01
protectorAspDotNetDev25-Feb-10 23:01 
GeneralRe: blood Pressure Pin
Jassim Rahma1-Mar-10 21:04
Jassim Rahma1-Mar-10 21:04 
GeneralRe: blood Pressure Pin
AspDotNetDev1-Mar-10 21:10
protectorAspDotNetDev1-Mar-10 21:10 
GeneralRe: blood Pressure Pin
Jassim Rahma1-Mar-10 21:16
Jassim Rahma1-Mar-10 21:16 
GeneralRe: blood Pressure Pin
AspDotNetDev1-Mar-10 21:18
protectorAspDotNetDev1-Mar-10 21:18 
QuestionTranslatable system? Pin
Ted On The Net25-Feb-10 20:24
Ted On The Net25-Feb-10 20:24 
AnswerRe: Translatable system? Pin
Saksida Bojan25-Feb-10 20:30
Saksida Bojan25-Feb-10 20:30 
AnswerRe: Translatable system? Pin
The Man from U.N.C.L.E.25-Feb-10 22:24
The Man from U.N.C.L.E.25-Feb-10 22:24 
QuestionHow to create offline twitter ? Pin
anshach25-Feb-10 20:15
anshach25-Feb-10 20:15 
AnswerRe: How to create offline twitter ? Pin
Harvey Saayman25-Feb-10 20:19
Harvey Saayman25-Feb-10 20:19 
AnswerRe: How to create offline twitter ? Pin
annathor25-Feb-10 21:48
annathor25-Feb-10 21:48 
GeneralRe: How to create offline twitter ? Pin
OriginalGriff25-Feb-10 22:36
mveOriginalGriff25-Feb-10 22:36 
AnswerTry the Twitter API documentation Pin
The Man from U.N.C.L.E.25-Feb-10 22:21
The Man from U.N.C.L.E.25-Feb-10 22:21 
AnswerRe: How to create offline twitter ? Pin
Pete O'Hanlon26-Feb-10 9:56
mvePete O'Hanlon26-Feb-10 9:56 

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.