0% found this document useful (0 votes)
31 views

Strings

The document describes tests conducted with a Word macro expecting numeric and alphanumeric arguments. It defines several variables and their data types, and tests how the Word macro handles different inputs. The macro prioritizes numeric output over text, and returns 0 for unsupported data types or operations like string concatenation. Variable names and values are also supported as inputs.

Uploaded by

Creo Parametric
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Strings

The document describes tests conducted with a Word macro expecting numeric and alphanumeric arguments. It defines several variables and their data types, and tests how the Word macro handles different inputs. The macro prioritizes numeric output over text, and returns 0 for unsupported data types or operations like string concatenation. Variable names and values are also supported as inputs.

Uploaded by

Creo Parametric
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CGTECH_VAR STRING BUFFER

CGTECH_VAR STRING NAME


CGTECH_VAR INT VALUE

VALUE = 123
NAME = "123"
BUFFER = "ABC"
#2 = 123
#3 = "123"
#4 = "ABC"
Q5 = 123
Q6 = "123"
Q7 = "ABC"

Note: The data type will determine which output field will be
Tests with Word expecting updated.Default Numeric output is zero, Default text output is the input
numeric argument text.

INPUT Data Type Text Output Numeric Output Explanation


123 numeric 123 123
"123" text 123 0
"ABC" text ABC 0
=123 numeric 123 123
="123" text 123 0

ABC none 0 Word ABC is not defined. The A is seen as an AAxisMotion command.
= [VALUE + 7] numeric [Value + 7] 130
= [NAME + BUFFER] numeric [Name + Buffer] 0 Concatenating of strings are not supported.
VALUE numeric VALUE 123
= VALUE numeric VALUE 123
NAME text 123 0
= NAME text 123 0
BUFFER text ABC 0
BUFFER text ABC 0
#2 numeric #2 123
= #2 numeric #2 123
#3 text 123 0
= #3 text 123 0
#4 text ABC 0
= #4 text ABC 0
Q5 numeric Q5 123
= Q5 numeric Q5 123
Q6 text 123 0
= Q6 text 123 0
Q7 text ABC 0
=Q7 text ABC 0

Tests with Word expecting alpha


numeric argument

INPUT Data Type Text Output Numeric Output Explanation


123 text 123 0
"123" text 123 0
"ABC" text ABC 0
=123 numeric 123 123
="123" text 123 0
ABC text ABC 0
= [VALUE + 7] numeric [Value + 7] 130
= [NAME + BUFFER] numeric [Name + Buffer] 0 Concatenating of strings are not supported.
Special case added in V6.0. Text is a variable name. NOTE: Array
VALUE numeric VALUE 123 variables are not supported.
= VALUE numeric VALUE 123
NAME text 123 0 Special case added in V6.0. Text is a variable name.
= NAME text 123 0
BUFFER text ABC 0 Special case added in V6.0. Text is a variable name.
BUFFER text ABC 0
#2 numeric #2 123 NOTE: # is not considered an alpha numeric character
= #2 numeric #2 123
#3 text 123 0
= #3 text 123 0
#4 text ABC 0
= #4 text ABC 0
Q5 numeric Q5 123 Special case added in V6.0. Text is a variable tag/value
= Q5 numeric Q5 123
Q6 text 123 0 Special case added in V6.0. Text is a variable tag/value
= Q6 text 123 0
Q7 text ABC 0 Special case added in V6.0. Text is a variable tag/value
=Q7 text ABC 0

You might also like