Hello folks,

I got the next code (translated to KiX from the original M$ VBscript page):

Code:
 $objDictionary = CreateObject("Scripting.Dictionary")
$objDictionary.Add("atl-dc-01", "No status")
$objDictionary.Add("atl-dc-02", "No status")
$objDictionary.Add("atl-dc-03", "No status")

$colKeys = $objDictionary.Keys
For Each $strKey in $colKeys
? $strKey + " " + $objDictionary.Item($strKey)
Next

? "==================="

;$objDictionary.Item("atl-dc-01") = "Available"
;$objDictionary.Item("atl-dc-02") = "Available"
;$objDictionary.Item("atl-dc-03") = "Unavailable"

$colKeys = $objDictionary.Keys
For Each $strKey in $colKeys
? $strKey + " " + $objDictionary.Item($strKey)
Next
??



This works well, but uncomment the 3 lines and run again.... frustrating...

How is it possible? Is an object of this type readonly?
The error i got is:
Code:
 ERROR : unexpected command!
Script: D:\Data\Work\Development\Scripts\KIX\dictionary.kix
Line : 26


Line 26 is in this example line 10... I got some commentcode above this snippet.

Can someone help me? Thanks...