Solved

easy point

Posted on 1998-11-08
1
126 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

912 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now