CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    3

    Easy Question About < and > Signs

    I know, for example, you are allowed to write something like "intUntitled &gt; 100" etc. How do you limit with two numbers. I.E., the text has to be greater than 11, but smaller than 30. I tried "intUntitled &gt; 11 &lt; 30" but that did not work. Any ideas?

    Even though he was an enemy of mine, I had to admit that what he had accomplished was a brilliant piece of strategy. First, he punched me, then he kicked me, then he punched me again.

  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Easy Question About < and > Signs

    If intUntitled &gt; 11 and intUntitled &lt; 30 then
    'do something
    end if

    David Paulson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured