Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: arrayize drop arrays 1638
myfiles=filename1,filename2and I want to grab everything after the equals sign, and break the filenames into an array.
I'm doing this in a loop, and it reads the first file OK, and the 2nd file OK, but then I get the error 1638 on the Arrayize statement.
Error 1638: Array Variable Assingment Error on line: array=Arrayize(f1,@tab)Hi: I am new to WinBatch! When running someone else script while he is away, I got above message! I reviewed the script and can't find what the problem is - Can you please help! Script is:
f1 = FileItemize("%drive%\pbms.%ver2%\%mod_long%\AOTFiles\*.*") .... FileAppend("%templatedrv%\%mod_short%\axt3.axt","%drive%\pbms.%ver2%\%mod_long%\AOTFiles\pbms%mod_long%%ver2%_%lang%.axt") array=Arrayize(f1,@tab) elements = ArrInfo (array, "1") handle = FileOpen("%drive%\pbms.%ver2%\%mod_long%\AOTFiles\pbms%mod_long%%ver2%_%lang%.axt", "APPEND") .....Thanks for your help!
array=Arrayize(f1,@tab)change it to:
Drop(array) array=Arrayize(f1,@tab)If you are incredibly unlucky (I don't think so, but maybe)
If IsDefined(array) then Drop(array) array=Arrayize(f1,@tab)
Article ID: W14819
File Created: 2001:11:20:11:57:04
Last Updated: 2001:11:20:11:57:04