[jawsscripts] Re: concatening strings

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 16 Nov 2020 11:55:16 -0500

Long-standing JAWS scripting anomaly there. One safe way around this is to use 
formatString: Replace

s = s +s1

with

s = formatString("%1%2", s, s1)

JAWS variable values are stored as variants internally but have long appeared 
to be analyzed for operator application for their contents rather than for 
their variant type. I could be wrong about this exact diagnosis, but I
think I'm close at least.

On Mon, Nov 16, 2020 at 10:50:20AM -0600, Bryan Schulz wrote:
Hi,


I could expect addition when adding int numbers but why would concat strings
perform addition?

I was trying to insert a space/pause between phone number digits all run
together.

Thanks,

Bryan


-- 
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and 
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was done." 
--Helen Keller
__________�

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

Other related posts: