[jawsscripts] Re: Unexpected DlgSelectItemInList error

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 28 Aug 2009 12:57:10 -0500

I suspect the line breaks are the result of his mailer wrapping the
long list. Had they been an issue, the compiler's protest would have
been something along the lines of "missing closing quote."

Logan: Scompile outputs the numbers of all problem lines encountered
during compilation. Though the error may actually be on the prior line
(such as in cases of mismatched parentheses), it's a great starting
point for problem tracing.

HTH
 Original message
from: "Sean Randall" <seanr@xxxxxxxxxxxxxxx>
subject: [jawsscripts] Re: Unexpected DlgSelectItemInList error
date: Fri, 28 Aug 2009 18:41:12 +0100

>Logan,
>
>The first thing that springs to mind is the profusion of line breaks within
>your list, are they perhaps an issue?
>
>
>Sean. 
>
>-----Original Message-----
>From: jawsscripts-bounce@xxxxxxxxxxxxx
>[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Logan McMullen
>Sent: 28 August 2009 06:38 PM
>To: Jaws Scripting List
>Subject: [jawsscripts] Unexpected DlgSelectItemInList error
>
>Hi,
>
>I'm creating a long list of items using the DlgSelectItemInList function.
>When I type in list items one by one as a test the script compiles but when
>I copy and paste the long list of items I want I get an error when compiling
>that states "Unexpected word DlgSelectItemInList".
>
>Is there some potential issue with copying a list from an external word/text
>file and then pasting it into the script manager?
>
>the pasted list is copied below for your interest & comments:
>
>DlgSelectItemInList ("New document|Open
>document|Print|Save|Close|Tab|Undo|Repeat|Open font dialog box|Open find
>dialog box|Insert  hyperlink|Copy|Cut|Paste|Bold|Italics|Underline|Align
>left|Align center|Align right|Justify|Select
>all|Subscript|Superscript.|Hide/reveal  the ribbon|Opens print 
>all|Subscript|preview|Open
>saved document|Shrink selected font|Grow selected font|Insert  Page
>break|Track  Changes|Insert footnote|Insert Endnote|Mark entry|Mark
>citation|View macros|Spelling and Grammar|Thesaurus|Select all text from
>current cursor position to the beginning of the document|Select all text
>from current cursor position to the end of the document|Office  button|Home
>tab|Insert tab|Page Layout tab|References tab|Mailings tab|Review 
>tab|tab|View New document|Open a previously  saved document|Save 
>tab|document|Save As
>document|Save as word document|Save as word template|Save as Word 
>document|97-2003 Find add-ins for other file formats|Other formats|Print
>document|Print|Quick Print|Print Preview|Properties|Inspect
>document|Encrypt document|Add a digital signature|Mark as Final|Run a
>compatability checker|Send as e-mail|Send as Internet  fax|Blog|Document
>management server|Create document workspace|Close document|Word options|Exit
>Word|Paste|Cut|Copy|Format Painter|Show Office Clipboard task 
>Word|Paste|Cut|Copy|pane|Font|Font
>Size|Bold|Italics|Underline|Strikethrough|Subscript|Superscript|Clear
>formatting|Highlight text|Font color|Change case|Grow font|Shrink
>font|Opens font dialog box|Starts bullet list|Starts numbered 
>font|list|Starts
>multilevel list|Decrease indent|Increase indent|Align left|Align
>center|Align right|Align justify|Open line spacing list|Add space before
>paragraph|Add space after paragraph|Shading|Borders|Sort  
>paragraph|order|Show/hides
>formatting symbols|Show paragraph dialog box|Show more headings|Open change
>styles list|Opens styles list|Open editing list|Open find dialog box|Replace
>selected text|Select text or objects in the document|Insert Cover
>page|Insert Blank page|Insert Page break|Insert Table|Insert 
>page|Picture|Clip
>Insert art|Insert Shapes|Insert SmartArt|Insert Chart|Insert
>Hyperlink|Insert Bookmark|Insert Cross-reference|Insert Header|Insert
>Footer|Insert Page  number|Insert Text box|Quick parts|Insert Word
>Art|Insert Signature line|Insert Date and Time|Insert Object|Insert
>Equation|Insert Symbol|Themes|Theme colors|Theme  fonts|Theme
>Effects|Margins|Orientation|Size|Columns|Breaks|Line
>Numbers|Hyphenation|Page setup|Watermark|Page color|Page  border|Indent
>Left|Indent right|Spacing before|Spacing after|Paragraph dialog 
>Left|box|Object
>position|Bring to front|Send to back|Text  
>position|wrapping|Align|Group|Rotate|Table
>of Contents|Add text|Update table|Footnote|Endnote|Next footnote|Show
>notes|Footnote dialog  box|Insert a citation|Manage sources|Bibliography
>style|Bibliography|Caption|Table of figures dialog|Update table|Cross-
>reference|Mark entry|Insert index|Update index|Mark citation|Insert 
>reference|Table of
>Authorities|Update Table of Authorities|Create  envelopes|Create
>labels|Start mail merge|Select recipients|Edit recipient list|Highlight
>merge fields|Address block|Greeting line|Insert  merge field|Rules|Match
>fields|Update labels|Preview results|First record|Previous record|Go to
>record|Next record|Last record|Find  recipient|Check for errors|Finish 
>record|and
>merge|Spelling and Grammar|Research|Thesaurus|Translate| Translation
>Screentip|Set  Language|Word Count|Insert comment|Delete 
>Screentip|comment|Previous
>comment|Next comment| Track changes| Balloons|Display for  review|Show
>Markup|Reviewing pane| Accept and move to next|Reject and move to
>next|Previous change|Next change|Compare|Show  source documents|Protect
>document|Print layout|Fulll screen reading|Web Layout|Outline view|Draft
>view|View ruler|View  gridlines|Document map|Thumbnails|Zoom|100%|One
>page|Two pages|Page width|New window|Arrange all|Split|View side-by-
>side|Synchronous scrolling|Reset window position|Switch window|View 
>side|macros",
>"test List: ", 1, 1)
>
>I used a test list code of:
>DlgSelectItemInList ("Item1|Item2|Item3", "Select Action To Perform: ",1,1)
>and the script compiled; however when I then replaced the list items with my
>wanted list above I get the unexpected word error.
> 
>
>
>Thoughts and suggestions please?
>
>Regards,
>
>Logan.
>
> 
>
>__________ Information from ESET NOD32 Antivirus, version of virus signature
>database 4333 (20090813) __________
>
>The message was checked by ESET NOD32 Antivirus.
>
>http://www.eset.com
> 
>
>
>__________
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at
>http://www.freelists.org/list/jawsscripts
>
>__________ 
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at 
>http://www.freelists.org/list/jawsscripts

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: