Re: MOD Operator

From: Brian Hammer (bphammer_at_earthlink.net)
Date: 12/06/04


Date: Sun, 5 Dec 2004 19:44:51 -0600

Only casue I was working with a form and updating some labels and text
boxes. :-)

Thanks for the code....

Brian

"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:MPG.1c1d7c40a476b9b898ba4e@msnews.microsoft.com...
> Brian Hammer <bphammer@earthlink.net> wrote:
>> All - I once came across an example that used the mod in an if then...
>>
>> What I need is to:
>>
>> if i = 100 or i = 200 or i = 300 or .... then
>> do my work
>> end if
>>
>> i can be from 10 to 10,500, therefore the if would be long. How can I use
>> the mod to determine this by 100's? Or another way??
>
> Not sure in what way this is related to Windows Forms - are you writing
> in VB.NET? If so, I suggest you ask in the VB.NET group. (Effectively
> you want if "i mod 100 = 0", but I don't know if that's exactly the
> right syntax, not being a VB.NET programmer myself.)
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



Relevant Pages

  • Re: room chart problems
    ... I would probably create an unbound report with text boxes or labels ... then setup a join query how do i then put the occupants of each room ...
    (microsoft.public.access.reports)
  • RE: adding record via form
    ... Brian, ... Make its CONTROL SOURCE also Employee_ID (i.e. the ... > Make three text boxes called Hire_Date, SSN, & Salary. ... >> Exit Sub ...
    (microsoft.public.access.forms)
  • Re: Help Creating a simple VBA form
    ... text boxes are placed in corresponding labels on the word document. ... form from the VBA editor. ...
    (microsoft.public.word.vba.general)
  • Re: Chris
    ... Ally likes her labels. ... Well, I like labelling files and storage containers, it's true. ... He seals things in boxes and puts what he isn't immediately ...
    (uk.local.cumbria)
  • Re: WIR off to beta readers
    ... they print up a bunch of labels and cover letters ... >that one have storage space for the labels (and more for the envelopes and ... >cover letters, if one chooses to do them, too), and also that said storage ... >climb over three stacks of boxes in the attic, unstack another set of boxes, ...
    (rec.arts.sf.composition)

Quantcast