WAD setarray "/f" only works on first one

Dec 10, 2014
66
1
The setarray command is specified for multiple arrays [...] in the help file, but the /f param only works on the first one - the result is that the other arrays don't get unset+set. This is annoying since setlocal doesn't work on arrays, so I have to setarray /f everything on a single line to be sure it works.

[C:\]*setarray x[2] y[2] z[2]

[C:\]*setarray x[3] y[3] z[3]
TCC: Array variable is already defined "x"
TCC: Array variable is already defined "y"
TCC: Array variable is already defined "z"

[C:\]*setarray /f x[4] y[4] z[4]
TCC: Array variable is already defined "y"
TCC: Array variable is already defined "z"

[C:\]setarray /f x[5] /f y[5] /f z[5]
TCC: Not an array variable "/f"
TCC: Array variable is already defined "y"
TCC: Not an array variable "/f"
TCC: Array variable is already defined "z"

 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
The setarray command is specified for multiple arrays [...] in the help file, but the /f param only works on the first one - the result is that the other arrays don't get unset+set. This is annoying since setlocal doesn't work on arrays, so I have to setarray /f everything on a single line to be sure it works.

WAD - /Friday only supports a single argument. You can file a suggestion for multiple argument support in the suggestions forum.
 
Similar threads
Thread starter Title Forum Replies Date
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
vefatica SETARRAY - /F not honored with /R Support 2
D Documentation SETARRAY and UNSETARRAY ... Support 1
Joe Caverly SETARRAY Maximums Support 2
x13 SETARRAY /Z bug Support 6
R Is this a bug in SETARRAY? Support 2
J WAD "setarray /f" only overwrites the first array var Support 2
T Documentation SETARRAY & SETLOCAL/ENDLOCAL Support 8
S Fixed SETARRAY /R appears not to close the file Support 4
S SETARRAY - minor issue Support 0
T VIEW only works from command line Support 14
D Alias with setdos no longer works Support 21
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
Phileosophos Enumshares works sometimes Support 16
I findstr works in cmd but not in tcc Support 5
Dmitry L. Kobyakov WAD Start /pgm "name.htm" works improperly Support 4
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7
Joe Caverly Works in debugger, not from cmd line Support 1
M "less" program that works in TC 18 Support 12
Joe Caverly Echo message works without the space? Support 3
cxxl dir /s works in mysterious ways :( Support 4
M Console-Mode (*.exe) works in TCC, not in TCMD Support 2
redwdc btm won't run in ver. 17 but works in ver. 16 Support 11
I How to? Bat Works but BTM Doesn't Support 6
vefatica Alias works differenltly v16 vs. v17 Support 13
C FFind /w works but FFind /= doesn't? Support 2
R Drag to BTM no longer works in Windows 8.1 Support 10
Frank @replace works case sensitive Support 5
D TPIPE works without being in path, but not V; aemail Support 8
noahcoad c:/hello.txt works in cmd.exe but not tcc.exe Support 1
C .bat files works in cmd.exe, not in TCMD Support 6
K Ctrl-D alias no longer works Support 4
R %+ works differently after upgrade Support 3
Joe Caverly Clearing a section of the screen works in CMD, not in TC Support 2

Similar threads