[jawsscripts] Re: Variant data type in JAWS scripts
- From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Wed, 24 Sep 2008 13:29:44 -0400
Variant is an undocumented variable type in JAWS scripting that I have
often used in order to obtain a degree of polymorphism. I boldly
assume that you are taking interest in this after examining some of
the BX source code. <grin>
In any case, yes, the compiler doesn't fully support Variant, but it
does partially. You can't say "let v = 0," but you can say "let v =
vcast(0)" if vcast() is defined as
variant function vcast(variant v)
return v
endFunction
olutil.jsl contains a version of that little piece of glue, under the
name olVCast().
On Wed, Sep 24, 2008 at 01:00:28PM -0400, Jamal Mazrui wrote:
I would like to learn more about how the variant data type may be used in
JAWS scripts. Apparently, it may be used as a parameter or return value,
as well as a local or global variable. When I tried to assign a number to
a variant variable, however, the compiler complained about a type
mismatch. I find no functions specifically for converting to or from
variants. Does anyone know what conversions are done automatically and
what conversions can be done with existing conversion functions like
IntToString?
Jamal
__________?
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
--
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________
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
- Follow-Ups:
- [jawsscripts] Re: Variant data type in JAWS scripts
- From: Jamal Mazrui
- References:
- [jawsscripts] Variant data type in JAWS scripts
- From: Jamal Mazrui
Other related posts:
- » [jawsscripts] Variant data type in JAWS scripts
- » [jawsscripts] Re: Variant data type in JAWS scripts
- » [jawsscripts] Re: Variant data type in JAWS scripts
- » [jawsscripts] Re: Variant data type in JAWS scripts
- [jawsscripts] Re: Variant data type in JAWS scripts
- From: Jamal Mazrui
- [jawsscripts] Variant data type in JAWS scripts
- From: Jamal Mazrui