1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is this a bug in SETARRAY?

Discussion in 'Support' started by RogerB, Feb 12, 2017.

  1. RogerB

    Joined:
    Apr 18, 2014
    Messages:
    156
    Likes Received:
    3
    Don't know if this is a bug or WAD, but I can't combine /f and /r when using setarray. According to the help for setarray, /f forces overwriting of an existing array (if any). However, if I try and use /f when reading from file into an existing array it fails.

    In the commands below, test.txt and test2.txt are approx 30 line text files with about 12 characters on each line.

    Code:
    TCC  20.11.38 x64   Windows 10 [Version 6.3.14393]
    TCC Build 38   Windows 10 Build 14393 
    
    d:\>setarray /r test.txt Array1
    
    d:\>setarray /f /r test2.txt Array1
    TCC: Array variable is already defined "Array1"
    
    
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,036
    Likes Received:
    84
    WAD - the /F and /R options are mutually exclusive.
     
  3. RogerB

    Joined:
    Apr 18, 2014
    Messages:
    156
    Likes Received:
    3
    Thanks Rex, I thought they might be. Can I request a note be added to the help page for SETARRAY to make that clear?
     

Share This Page