Archived

This topic is now archived and is closed to further replies.

HOOKUPS

Lowest number of two

Recommended Posts

I got 2 calculations and the result i want is the lowest result of the two calculations !! how can i do that in Visual basic ?? Edited by - HOOKUPS on 4/5/00 9:41:38 AM

Share this post


Link to post
Share on other sites
You could try this out :
Dim A,B as integer

If A < B Then
''Result
Else
''Result
End If

But i haven''t tryed it out, it sould work. With a bit of tinkering. From Jono

Share this post


Link to post
Share on other sites
int LowerValue
int Result1 = DoResultCalc1
if (Result1 < DoResultCalc2)
then LowerValue = Result1
else LowerValue = Result2

I have a macro in C
#define MIN(x,y) ((x) < (y)) ? (x) : (y)


ZoomBoy
A 2D RPG with skills, weapons, and adventure.
See my character editor, Tile editor and diary at
Check out my web-site

Share this post


Link to post
Share on other sites