Results 1 to 5 of 5

Thread: [RESOLVED] Proper way to word this line of code?

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2011
    Posts
    50

    Resolved [RESOLVED] Proper way to word this line of code?

    What would be the correct way to word the line of code I'm working with below? I get a compile error with the second > symbol. Thank you.

    If txt1 > 0 and Not > 6000 Then

  2. #2
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Proper way to word this line of code?

    Code:
    if  (val(txt1.text) > 0 and val(txt1.text) <= 6000) then ' if greater then 0 and is 6000 or less.
    'code here
    end if
    do greater and less then, instead of not greater... its the same logic.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2011
    Posts
    50

    Re: Proper way to word this line of code?

    Thank you, dont know what I was thinking.

  4. #4
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Proper way to word this line of code?

    by the way, welcome to the forums.

    please mark your thread as resolved when your question has been answered

    above the first post, go to thread tools> mark thread resolved.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2011
    Posts
    50

    Re: Proper way to word this line of code?

    Will do, thanks for telling me how to mark as resolved I gotta make sure my last thread got marked that way.

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