Hi, I knew it had to be something totally obvious that I was just not seeing. Now, for that coffee, and thanks, Doug. Jim > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts- > bounce@xxxxxxxxxxxxx] On Behalf Of Doug Lee > Sent: Tuesday, March 13, 2012 8:25 AM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] Re: Compiler Error Frustration > > You're calling GetLineText but the function is actually called > EditGetLineText. The compiler therefore sees a call to a function it > doesn't know about. It assumes any function it hasn't seen declared > returns int, but then it discovers you're assigning the result of > getLineText to a string, so it bellows at you and comes to a stop. > > On Tue, Mar 13, 2012 at 12:20:59PM +0000, Homme, James wrote: > Hi, > I'm an experienced scripter, so my brain must not be firing on as > many cylinders as it should this morning. Before I go for my second > cup of coffee, I thought I'd ask to see if anyone spots the reason > for this error. > The error is that a string is expected when the compiler thinks I'm > using an integer. Below is the code. I'm putting a comment before the > line the script manager is pointing to. As you can see, I've > commented out a bunch of lines to try to isolate the problem. > > Int Function UICopyHelper(Int iAppend) > > ;Copy or copy append, defaulting to current line if no selection > > var > handle h, > int i, > int l, > String s > > let s = GetSelectedText() > let l = StringLength(s) > > ; if l < 1 then > ; This is the offending line. > let s = GetLineText (h, i) > ; EndIf > > ; if IAppend then > ; AppendToClipboard (s, True) > ; else > ; CopyToClipBoard(s) > ; EndIf > EndFunction > > ; This is the function the offending line calls. > > String Function EditGetLineText (handle h, int iLine) > > ;Get text of a line > var > string sReturn > > SaveCursor() > InvisibleCursor() > SaveCursor() > RouteInvisibleToPc() > sReturn = GetLine() > RestoreCursor() > PcCursor() > RestoreCursor() > ; SayString ("sReturn is " + sReturn) > Return sReturn > > EndFunction > > Thanks. > > Jim > > > Jim Homme, > > > Usability Services, > > > Phone: 412-544-1810. > > > > Jim Homme, > Usability Services, > Phone: 412-544-1810. > > > ________________________________ > > This e-mail and any attachments to it are confidential and are intended > solely for use of the individual or entity to whom they are addressed. > If you have received this e-mail in error, please notify the sender > immediately and then delete it. If you are not the intended recipient, > you must not keep, use, disclose, copy or distribute this e-mail > without the author's prior permission. The views expressed in this e- > mail message do not necessarily represent the views of Highmark Inc., > its subsidiaries, or affiliates. > > __________??? > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > -- > Doug Lee, Senior Accessibility Programmer > SSB BART Group - Accessibility-on-Demand > mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com > "While they were saying among themselves it cannot be done, > it was done." --Helen Keller > __________??? > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts