Note that you can't concatenate Name and Role. Name is a String, and Role is an 
object. You're probably looking for the Role obejct's Text property.

Aaron

-- 
Aaron Smith 
Web Development * App Development * Product Support Specialist
Ai Squared * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * www.aisquared.com

To insure that you receive proper support, please include all past 
correspondence (where applicable), and any relevant information pertinent to 
your situation when submitting a problem report to the Ai Squared Technical 
Support Team.

> -----Original Message-----
> From: Scripting [mailto:scripting-
> [email protected]] On Behalf Of Rick
> Thomas via Scripting
> Sent: Tuesday, March 24, 2015 12:47 PM
> To: 'Window-Eyes Scripting List'
> Subject: Error Handling
> 
> I try to print a line that has the concatenated accObj.Name & " " &
> accObj.Role in the line.
> It prints a bunch of these but then blows up saying I have a bad call or bad
> argument, likely the latter.
> How do I trap the error and print the ascii codes for whatever is in the line
> string causing the error?
> In vb.net I would use a try / catch block.
> How do I trap the error, pass the bad line to it and print out the ascii 
> contents
> along with regular text if any.
> Also, if necessary, how do I pass processing this line and continue when
> there are good lines?
> 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/asmith%40aisquared.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


_______________________________________________
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

Reply via email to