Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: Processing  (Read 1596 times)
0 Members and 1 Guest are viewing this topic.
jcright
Member

Posts: 6


View Profile
« on: April 10, 2007, 02:10:44 PM »

I have a db that I want to do processing on. It has 24 fields each of which will be assigned points based on whether or not the field has been filled in. So, for example, field 1, if it were filled in, would be awarded 4 points and field two, if it were filled in, might be worth 3 points.

Okay, so first I need to check each field and see if it has been filled in. If the field isn't null, then I need to assign that field points.

In the end I'm going to add up the points for each field for a grand total.

Do I use 24 different variables, one for each field, and assign it the points? How do I check to see if a field is null or not? I'm guessing I want something that says:
If <Field 1> is not null
then <variable1> = 4

At the end, I'm guessing that I would want something that says
If
Then <Total Variable> = <variable1> + <variable2> +...+<variable24>

How do I go about doing that?
Logged
Alan
Member

Posts: 7


View Profile
« Reply #1 on: October 16, 2007, 05:01:57 PM »

you could use an array like dim field(24) and the cycle thru it adding up the points based on the field number.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Valid XHTML 1.0! Powered by SMF 1.1.15 | SMF © 2011, Simple Machines | Massive Blue Theme By Cadosoas Valid CSS!