If Z=1 or Z=2 or Z=3 or Z=4 or Z=5 or Z=6 then
SIDE = W - (V / 3600#)
End If
purplegerbil
Junior Poster in Training
78 posts since Apr 2005
Reputation Points: 24
Solved Threads: 6
Sorry purplegerbil, but that makes all 6 values equal the same thing.
Try this:
If Z = 1 Or If Z = 3 Or If Z = 5 Then[INDENT]SIDE = W - (V/3600#)[/INDENT]End if
If Z = 2 Or If Z = 4 Or If Z = 6 Then[INDENT]SIDE = W + (V/3600#)[/INDENT]End If
w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2
I just realised it should have been
If Z = 1 Or Z = 3 Or Z= 5 (only one If at the start of the line, sorry, silly mistake)
However, Invisal, I like neat one-liners but I don't actually follow that one, could you explain it?
w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2
Interesting, that. I'll do a test project and play with it, and the Iif one.
Have to say though that although I've used Iif before, I found that it didn't cope with complicated logic very well, so I stopped using it even though it meant a few more lines.
w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2
hey man ur coding isnt working ..........plz work on it
Which of us are you talking to ??
w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2