[jawsscripts] Re: Use Statement Question

  • From: "Dennis Brown" <DennisTBrown@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 10 Jun 2009 16:20:51 -0400

For instance,

use MyFileOne.jsb
use MyFileTwo.jsb
use MyFileThree.jsb

And you have a SayLine function in this file, and also in MyFileOne and 
MyFileThree, then the local SayLine gets called, then MyFileOne, then 
MyFileThree, then the default SayLine, unless you condition it to break out 
prior to one of the others to get called.
To specify which, you'd use the scope modifier.
Function MyTestFunction(int iFlag)
If iFlag==True Then
    MyFileOne:SayLine()
EndIf
SayLine()
 EndFunction

Function SayLine()
blah blah blah
Default:SayLine()
EndFunction
If
Thanks,
Dennis Brown

----- Original Message ----- 
From: "Homme, James" <james.homme@xxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, June 10, 2009 2:58 PM
Subject: [jawsscripts] Re: Use Statement Question


> Hi Dennis,
> What do you mean by "order?" First physically in the file or nesting of 
> use statements within files?
> Thanks.
>
> Jim
>
> ----------
> Jim Homme, Usability Engineering.
> 412-544-1810.
>
> Note: I will reply to email and voice mail within four hours.
>
> "Nothing in this world can take the place of persistence.
>
> "Talent will not; nothing is more common than unsuccessful people with 
> talent.
>
> "Genius will not; unrewarded genius is almost a proverb.
>
> "Education will not; the world is full of educated derelicts.
>
> "Persistence and determination alone are omnipotent."
> - Calvin Coolidge (1872-1933)
>
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx 
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Dennis Brown
> Sent: Wednesday, June 10, 2009 2:28 PM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: Use Statement Question
>
> The local function/script gets first call, then the use statements in the
> order they are present.
> You can override this with the scope modifier, which allows you to 
> designate
> which one gets fired.
> Thanks,
> Dennis Brown
>
> ----- Original Message -----
> From: "Homme, James" <james.homme@xxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Wednesday, June 10, 2009 8:45 AM
> Subject: [jawsscripts] Use Statement Question
>
>
>> Hi,
>> If I put a use statement in a script file, and a function in the file I
>> use has the same name as one in the file that contains the use statement,
>> which version of the function will execute?
>> Thanks.
>>
>> Jim
>>
>> ----------
>> Jim Homme, Usability Engineering.
>> 412-544-1810.
>>
>> Note: I will reply to email and voice mail within four hours.
>>
>> "Nothing in this world can take the place of persistence.
>>
>> "Talent will not; nothing is more common than unsuccessful people with
>> talent.
>>
>> "Genius will not; unrewarded genius is almost a proverb.
>>
>> "Education will not; the world is full of educated derelicts.
>>
>> "Persistence and determination alone are omnipotent."
>> - Calvin Coolidge (1872-1933)
>>
>>
>>
>> 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.
>> __________�
>> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> //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
> //www.freelists.org/list/jawsscripts
>
>
> 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.
> __________�
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //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 
//www.freelists.org/list/jawsscripts

Other related posts: