|
-
Sep 8th, 2003, 09:35 AM
#1
Thread Starter
Hyperactive Member
Function to ensure variables have same value or null
Given 3 variables [var1, var2, var3], which represent the version [i.e.: 1, 2, 3, etc.] of each station.
I need a method/function to ensure that the version is the same in all stations that are reporting. So if the value [varX] is blank/null then do not count it in the comparisons, otherwise ensure all filled variables are the same.
I am looking for a way to check this without going threw case/select statements [first thing that comes to mind] for each possible case [when a variable is null].
Of course in reality there are 22 variables, which explains why I cannot do the trivial Case/Select for all possibilities of null variables.
Anyone have a better idea on how to code the pseudo-code above in VC#?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|