Copying Array to Array


Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Mar 2010
    Posts
    15

    Default Copying Array to Array

    I am having trouble copying from one array to another.

    if I do this it works:

    Code:
    array1   VAR BYTE [30]
    CopyMe VAR BYTE[30]
    
    For I = 0 to 29
     array1[I] = CopyMe[I]
    Next I
    If I try this it does not work:

    Code:
    Arraywrite Array1, [CopyMe\30]
    
    OR
    
    Arraywrite Array1, [CopyMe]



    I have even tried

    Code:
    ARRAYWRITE Array1, 30, [CopyMe]
    And

    Code:
    ARRAYWRITE Array1, [STR CopyMe\30]
    But these result in compile errors or in the later example, code not functioning correctly.

    What am I missing with the Arraywrite command?

    ARRAYWRITE ArrayVar, length, label, [data]

    ???

    Thanks
    Last edited by vamtbrider; - 23rd April 2010 at 16:05. Reason: Added declaration of arrays

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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