Passing arguments to subroutines


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    949


    Did you find this post helpful? Yes | No

    Default

    ...I'm too lazy

    Seriously, I was looking to avoid this way of doing (because this is what I actually do).

    Once again, you prove there is ALWAYS a solution... and thank you for this.
    Roger

  2. #2
    Join Date
    Sep 2006
    Location
    Mexico
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    Hello, try with this code:
    b0 var byte

    Main:

    ... some code
    b0=123
    gosub test
    ...some code
    goto Main

    test:
    if b0=123 then
    ...code
    endif
    return

Similar Threads

  1. Subroutine Variable Passing
    By GoldStar in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th May 2009, 08:55
  2. PIC18F4550 Error[128] Missing Arguments
    By damalu in forum mel PIC BASIC
    Replies: 9
    Last Post: - 17th November 2008, 22:47
  3. Functions in Pic Basic Pro
    By bumlife in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th April 2007, 22:59
  4. Shorter Subroutines for MAX7219
    By exelanoz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2007, 12:35
  5. Measuring speed of a passing vehicle
    By kitcat in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 12th July 2005, 17:50

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