• Advertisement

Archived

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

Lowest number of two

This topic is 6530 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement