Solved

easy point

Posted on 1998-11-08
1
131 Views
Last Modified: 2010-04-30
In pascal or c, there is a function named 'rem' and 'mod' which return the reminder of the division. Like

         a = 5 rem 2;

then  1 will be stored into a.

         a = 17 rem 3;

then 2 will be stored into a.

Could I get this rem and mod function in vb.
If yes, how, I would like an example.
If no, how can I build this function, I would like a complete code.


Thank a lot.  
0
Comment
Question by:math253
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
thunderbug110898 earned 200 total points
ID: 1443871
in VB:

Dim x As Integer

x = 10 mod 2

MsgBox x  ' this will display 0

x = 10 mod 3

MsgBox x ' this will display 1

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question