HighlanderSword 1 Posted December 15, 2010 Hello, Im working on converting code from Outlook VBA to Autoit Below is a section of code that I neeed help transalting to Autoit,appears there is no for Each command,this loop is giving me all of the folder names for outlook. How would I go about changing the for Each command from VBA to something that Autoit will recognize ? Func Entryids($StartFolder) For Each objFolder In StartFolder.Folders Call Entryids(objFolder) Next consolewrite (StartFolder.Name & ";" & StartFolder.EntryID & ";" & StartFolder.FolderPath & ";" & StartFolder.StoreID & ";" & StartFolder.Store & @crlf) EndFunc Share this post Link to post Share on other sites
enaiman 16 Posted December 15, 2010 You don't need the keyword "Each" in Autoit. When you are using "For $x In $y" that implies "each". Just remove that and go on. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites
Zedna 279 Posted December 15, 2010 Look at Outlook UDF Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites