ok.. I must be brain damaged, but I just cannot find this error

Quote:


C:\Documents and Settings\wheelerc>kix32 "C:\Documents and Settings\wheelerc\Des
ktop\Switches.kix"

ERROR : Error in expression: this type of array not supported in expressions.!
Script: C:\Documents and Settings\wheelerc\Desktop\Switches.kix
Line : 161

C:\Documents and Settings\wheelerc>





the code segment is:
Code:
 
$=WriteProfileString(@scriptdir+'\package.sed','Strings','FriendlyName','Silent '+$file)
$=WriteProfileString(@scriptdir+'\package.sed','Strings','AppLaunched',$file+' '+$switch)
$=WriteProfileString(@scriptdir+'\package.sed','Strings','FILE0',$file)
$=WriteProfileString(@scriptdir+'\package.sed','SourceFiles','SourceFiles0',$path)
Shell 'IExpress /n package.sed'
EndFunction
;******************************************************************
Function WriteFile($file,$array)



The error occurs on the shell statement, after it completes
_________________________
How to ask questions the smart way <-----------> Before you ask