BugFix Posted October 26, 2007 Posted October 26, 2007 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²ý´^iÛ-ëÚç®+Þ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
GaryFrost Posted October 26, 2007 Posted October 26, 2007 http://www.autoitscript.com/forum/index.ph...c=47048&hl= SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now