Sign in to follow this  
Followers 0
BugFix

Object 'Scripting.Dictionary'

2 posts in this topic

Hi,

I've worked with Object 'Scripting.Dictionary'. And I mean thats a good alternative for array in all cases to work with key-value pairs.

The advantage for people whose have problems to work with arrays: the keys will called by name, not by index.

Here I show you my 'object dictionary udf-collection'.

See the different in this example.

We have an INI-File to store values for GUI creation.

[start]
width=600
heigth=400
x_pos=40
y_pos=60

- the way in AutoIt

$var = INIReadSection($PathINI, 'start')
$GUI = GUICreate('Title', $var[1][1], $var[2][1], $var[3][1], $var[4][1])oÝ÷ Ùh­©h¶ÞÚâzȧ¶4bè­²«vÚ+y§¡×°Ø[Ó~¯j¹õý²-ßÛ&¢·jÌ­¢·tæã'-ëUj[Ó~¨n7·d{)Úíýëg£ay@ÅßÛë~éܶ*'±ªÞjö¢¦åy³8´*Þjצ¡×¿l*Þj׬jwbrبªò¡¸Þrاn)Ú¯)¨uç^}«¥¶í{f¡×zÛ«ËazãyËajwey³8´]¡¸ÞrÙÊö¥¹ïÛ×ljyÊö¥¹êZ»h¶Ëb¢v«ÊãyË[9¸ÃËFzÕZç¨n7¶G²ý´^-ëÚç®+ÞG²læã'-IëUj[¡¸ÞrÙÊö¥¹ïÛIël¶¯j[~Ú+ÞG²læã'-
§¶ãyËm­º¹ìr§¶ä{+9¸ÃËRyªÜãyËd{/ÛN!yÉ¢·±Ë^Ǩ}©ä{(·SEA7ö'ߢéÝlæã'-
é^µâÊãyËd{/Û
é^µè"½éä{&§vö¥¹å¢¶¦¦Ü¬¶¸§ú+ìYÊÌ"W^ë^uçÚº[[9¸ÃËKËhn7¶Ø­ïÛJ0²)ÚeÂ+a+-¾'°jYd{+Úç©j*ìlâEæIç-Ó æã'-¡¸ÞÒ
"­Ç¶*'ý´^iÛYÊö¥¹êZ»®H±ç-í¡©ÝËb¢v«ÊãyËQzÛ«ËayÊ.Úì¯j[¥¨«±²'jâµärبZèæã'-¡¸ÞrÒ
"­Ç¶*'ýµ«×¬jYd{+Úç©j*ì~º&jwbrبªò¡¸ÞrÛh Ò,yËb¢t^¶êç²Ø^r§¶ä{+Úç©j*ìlX¥yu:n0ârÚç-µìm~)^¥«a±ê^­«h¯öÑy§ljYd{+Úç©j*ì~º&j{^Æ×âëhjwbrبªò¡¸ÞrÙbæò)ÞÖ¢¯ùbàÞ}«¥¶Ç©z¶­¢¸¬ßÝýmæëhr§ä^¶êç²Ø^r§¶ä{+Úç©j*ìlX¥yjâµák¢c8¶ãyËm{_W©jØlz«jÚ+¢÷«Â¸­{öÖ®+^±©eì¯j[¥¨«±úè©ÝËb¢v«ÊãyËm¡©í{_W¥wÊX§{ZZ¿åwØh½êð®+^

Please try it and give me a feedback.

objDictonary.au3


Best Regards BugFix  

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0