Quote:

$index = ascan($aLCase,$sScaninfo)
if $index > -1
$ = WriteLine (1,$aEncode[$index])
else
$ = Writeline(1,$sScaninfo)
EndIf





Just want to make sure that I understand your modifications in using the Ascan function.

$index = ascan($aLCase,$sScaninfo)

Is a numeric value with 0 starting as the first numeric value? This counts out the $aLCase until the $sScanInfo is found.

$ = WriteLine (1,$aEncode[$index])

Will take $aEncode and scan the array to the $index value so if $index = 2 the script will write the 3rd element in the $aEncode array?
_________________________
I haven't failed. I just found another way that did not work.