Results 1 to 3 of 3

Thread: Learning VB, simple question.

  1. #1

    Thread Starter
    Lively Member smilbuta's Avatar
    Join Date
    Apr 2005
    Location
    Orlando
    Posts
    104

    Learning VB, simple question.

    VB Code:
    1. Private Const desktop_createmenu As Int32 = [B]&H4&[/B]

    In working over some code and i see the item in bold. WHat is that? I understand its some value poulating the variable but whre is it aquired from?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Learning VB, simple question.

    It's a literal value. It's hexadecimal for, coincidentally, 4. I'm guessing that it is a Windows constant, which are documented in various places. If that's the case then it would be helpful if you gave your question a little context.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member smilbuta's Avatar
    Join Date
    Apr 2005
    Location
    Orlando
    Posts
    104

    Re: Learning VB, simple question.

    Ahh, ok..
    THe line is from a project that detects if a machine is locked or unlocked.
    I have been searching for a simple solution to detect sucha state rather than using hooks and other more complicated options.. just trying to find a simple method to tell me if the station is locked!

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