how to implement DIM AS CODE


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: how to implement DIM AS CODE

    DIM is BASIC, this forum is for PIC BASIC.

    From the manual:
    4.5. Arrays
    Variable arrays can be created in a similar manner to variables.
    Label VAR Size[Number of elements]

    Label is any identifier, excluding keywords, as described above. Size is BIT, BYTE or WORD. Number of elements is how many array locations is desired. Some examples of creating arrays are:

    sharks var byte[10]
    fish var bit[8]
    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: how to implement DIM AS CODE

    I bet you're using PROTON PIC:
    http://www.picbasic.nl/indexes_uk.htm

    Try here:
    http://www.protonbasic.co.uk/forum.php

    Robert
    Last edited by Demon; - 14th June 2015 at 03:27. Reason: Link

Similar Threads

  1. Very quick question... To help a dim wit !!
    By andybarrett1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th October 2014, 22:01
  2. Maths help for the terminally dim please
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 7th July 2013, 20:15
  3. question about how to implement ASM and ENDASM
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th March 2008, 10:21
  4. dim a led
    By fred.pacc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st November 2006, 18:49
  5. Implement a timer without using an interrupt
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2006, 19:44

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