Sorry rick, but there's no real chance there's invalid characters in a string which cause an error.
One other possibility is that the accObj object actually disappears on you while you're using it. MSAA thinks it's done with it, and deletes it. One thing that can prevent this is for you to have your own variable, and set it to accObj, which increases the "in use" count, and should prevent it from going away. This is assuming you are only dealing with string properties, there's just not much which can go wrong with them to cause an error if you're just assigning them or comparing them or printing them. If you're using a queue command to send the property to your print routine, the accObj object is very likely gone by the time your printing routine is handling it, so make a copy of the string and send the copy using queue (just placing the argument in parrens should do it, as that should create an expression). Hth, Chip -----Original Message----- From: Scripting [mailto:[email protected]] On Behalf Of Rick Thomas via Scripting Sent: Tuesday, March 24, 2015 2:16 PM To: 'Window-Eyes Scripting List' Subject: ErrorWorking How To Iterate String Characters Have the Error handling get number, source and description working. Not very helpful. Just says invalid parm argument. So the parm string to print likely has some invalid characters in it from something in the accObj.Name Property - just a guess. How would I do something like: For I as Integer = 0 to myString.Length - 1 [Print ascii value of character]( i) Next i Rick USA I googled but didn't find anything on iterating a string character by character loop. At least not in any reasonable timeframe if one exists. Rick USA _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lists3717 %40comcast.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com
