[jawsscripts] Re: String question

what does the 1 and the +1 mean?  What if I wanted to chop off more words of 
the string?  What would I change?
  ----- Original Message ----- 
  From: Huskins, Wayne 
  To: jawsscripts@xxxxxxxxxxxxx 
  Sent: Tuesday, November 20, 2007 7:42 AM
  Subject: [jawsscripts] Re: String question


  Try

  Script test ()
  var
  string line
  let line = getline()
  let line = stringChopLeft (line, StringLength (StringSegment (line, " ",
  1))+1)
  let line = stringChopLeft (line, StringLength (StringSegment (line, " ",
  1))+1)
  saystring(line)
  EndScript

  W 

  -----Original Message-----
  From: jawsscripts-bounce@xxxxxxxxxxxxx
  [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] 
  Sent: November 20, 2007 02:09
  To: jawsscripts@xxxxxxxxxxxxx
  Subject: [jawsscripts] String question

  OK,
   
  I have an app. that I want to modify the say next and say prior line pc
  cursor scripts.  For example, if I am going to the next line, I want
  Jaws to read the whole line minus the first two words.  is there a way
  to get a line then chop off the first two words and then have jaws speak
  the rest of the line?
  I was able to do it with chopping characters, but not with words.  My
  function is below.
   

  Void Function SayToEndOfLine ()

  var

  string Line,

  STRING PartLine

  LET Line = GetLine ()

  Pause ()

  ;SayString ("Fired")

  LET PartLine = StringChopLeft (Line, 6)

  Pause ()

  SayString (PartLine)

  EndFunction

   
  How can I do words instead of characters?
  THANKS!
   
  Gian Carlo Pedulla
  GianniP46@xxxxxxxxxxxxx
   
  LETS! GO! METS!
  __________ 
  View the list's information and change your settings at 
  http://www.freelists.org/list/jawsscripts



  -- 
  No virus found in this incoming message.
  Checked by AVG Free Edition. 
  Version: 7.5.503 / Virus Database: 269.16.3/1144 - Release Date: 11/21/2007 
4:28 PM

Other related posts: