PIC code to Visual Basic


Results 1 to 3 of 3

Threaded View

  1. #3


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    This has always worked fine for me in the past.

    If (Value And (2 ^ Bit)) > 0 Then 'that bit must be set
    'Do something
    End If

    Value = the word value send to the VB application from the PIC
    Bit = the bit you want to test (to see if it's set or not)

    Try it out and let me know how everything works out.

    Cheers.

    Last edited by picnaut; - 28th October 2005 at 17:41.
    ---> picnaut

Similar Threads

  1. Looking at pic basic pro symbol values in mplab 8.15a simulator
    By ukemigrant in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th May 2009, 13:18
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. PIC BASIC or PIC BASIC PRO
    By kirkmans in forum USB
    Replies: 3
    Last Post: - 20th April 2007, 00:52
  4. Visual Basic 6 and Pic com
    By shawn in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th September 2005, 05:21
  5. Help with MPASM and PIC Basic
    By johngb in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 21st February 2003, 13:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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