[jawsscripts] Re: concatening strings

  • From: "Bryan Schulz" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "b.schulz" for DMARC)
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 16 Nov 2020 11:33:46 -0600

Hi,

Nice non-existant concat for string digits!
Works great.
Thanks,
Bryan


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Doug Lee
Sent: Monday, November 16, 2020 10:55 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: concatening strings

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
__________o?=

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


__________�

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

Other related posts: