[jawsscripts] Compiler Error Frustration

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 13 Mar 2012 12:20:59 +0000

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

Other related posts: