aminooo Posted February 25, 2011 Author Share Posted February 25, 2011 Hi, Since i started Learning VB6, i crossed so many times the Mod Function, but i still can't figure out how it works.Can someone please explains it? And add a simple code that uses it if possible.Thanks. Link to comment Share on other sites More sharing options...
Rithy58 Posted February 25, 2011 Share Posted February 25, 2011 First off, how are you learning vb6? By reading the code and try to understand how it work or are you learning by online tutorial?Anyway,Function is a bunch of code for something to…well function.For example, you could have a function for changing the player name.Sincerely,Rithy Link to comment Share on other sites More sharing options...
aminooo Posted February 25, 2011 Author Share Posted February 25, 2011 Well first, it's a book, best way to learn for now since i have a crappy internet.For now, i'm learning VB6 not Eclipse coding.It's Just that the example codes in this books, uses alot the Mod Function, but i still can't figure out how it exaclty works >.> Link to comment Share on other sites More sharing options...
Robin Posted February 25, 2011 Share Posted February 25, 2011 :rolleyes:[http://msdn.microsoft.com/en-us/library/se0w9esz%28v=vs.80%29.aspx](http://tinyurl.com/66c5tdt) Link to comment Share on other sites More sharing options...
aminooo Posted February 25, 2011 Author Share Posted February 25, 2011 Already Done that, Ms Supports VB 2005 and up. Link to comment Share on other sites More sharing options...
Robin Posted February 25, 2011 Share Posted February 25, 2011 @aminooo:> Already Done that, Ms Supports VB 2005 and up.…what? Link to comment Share on other sites More sharing options...
evilbunnie Posted February 25, 2011 Share Posted February 25, 2011 Mod is short for Modulus and is a operator that is used to get the remainder.Example: 10 mod 3 = 1 Link to comment Share on other sites More sharing options...
aminooo Posted February 25, 2011 Author Share Posted February 25, 2011 @Captain:> Example: 10 mod 3 = 1Can you explain a little more? :3@Rainbow:> …what?Microsoft is no longer supporting VB6, anything related to VB6 @ Microsoft website is just showing how to upgrade to VB.NET Link to comment Share on other sites More sharing options...
evilbunnie Posted February 25, 2011 Share Posted February 25, 2011 @aminooo:> Can you explain a little more? :3> > Microsoft is no longer supporting VB6, anything related to VB6 @ Microsoft website is just showing how to upgrade to VB.NETIt gets the remainder of a devision… Link to comment Share on other sites More sharing options...
aminooo Posted February 25, 2011 Author Share Posted February 25, 2011 i meant what means the 3 = 1 at the end Link to comment Share on other sites More sharing options...
evilbunnie Posted February 25, 2011 Share Posted February 25, 2011 I think, you should learn the basics of Visual Basic until you get into this stuff. Link to comment Share on other sites More sharing options...
aminooo Posted February 25, 2011 Author Share Posted February 25, 2011 that's why i'm asking, because this function blocked my way Link to comment Share on other sites More sharing options...
Robin Posted February 25, 2011 Share Posted February 25, 2011 This isn't VB6 stuff, though. It's basic mathematics. If I can get my head around modulus you have no excuse at all. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now