Mirage Source

Free ORPG making software.
It is currently Tue May 21, 2024 8:28 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Useful-ish function?
PostPosted: Mon Apr 06, 2009 3:34 am 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
I'm bored, just came up with this:

Code:
Private Function IsDivisibleBy(ByVal Number As Long, ByVal Divisible As Long) As Boolean
    IsDivisibleBy = (Number Mod Divisible) = 0
End Function


Example in HandleShutDown: If IsDivisibleBy(Secs, 5) Or Secs <= 5 Then

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group