[jawsscripts] Re: Putting a slash at the end of a text string

Jackie,

Did you try that with something like this in it?

CopyToClipboard (path)

Sue B.

Jackie McBride wrote:
> Sue, see below. It works.
> include "hjconst.jsh"
> include "hjglobal.jsh"
>
> Script testing ()
>
>
> var
> string path
> let path = "c:/mypath/mydir/"
>
>
>
> EndScript
>
>
> On 9/30/08, Sue B <sueb@xxxxxxxxxxxxxx> wrote:
>   
>> Jackie,
>>
>> Yes, everything in the code works normally until I put the string that
>> has the slash at the end. Then I'm given a message telling me that I
>> haven't added the closing quotes, which I have. I also tried this with a
>> TypeString function as well as with the string as a variable. Neither
>> works. In both cases the slash causes the error message and removing the
>> slash allows it to compile normally.
>>
>> Sue B.
>>
>> Jackie McBride wrote:
>>     
>>> U didn't show us your code. It compiles fine if u put the string in
>>> quotation marks.
>>>
>>> On 9/30/08, Sue B <sueb@xxxxxxxxxxxxxx> wrote:
>>>
>>>       
>>>> Hi all,
>>>>
>>>> I hope someone here has a good answer to this question. I was creating a
>>>> script in which I was holding a text string in a variable. The string of
>>>> text ended in a forward slash. The problem was that the file would not
>>>> save and compile when the slash was there. Now this string was a path
>>>> statement so it had three other forward slashes in it and these didn't
>>>> seem to be a problem, just the one at the end. I won't bore all of you
>>>> with the specifics of the script or why the slash had to be at the end
>>>> of the string, but take my word for it the reason for doing this would
>>>> have saved my user some time while completing a repetitive task if I can
>>>> make it work. Any suggestions will be much appreciated. Can I use an
>>>> ascii representation of this character to do this?
>>>>
>>>> Thanks in advance for any help you can offer.
>>>>
>>>> Sue B.
>>>> __________
>>>> 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: