Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vector Variables 1

Status
Not open for further replies.

VOiDDude

Vendor
Aug 5, 2004
132
US
Hello,

Does anyone know if it's possible to assign 2 variables to a third one ? ex. Variable A AND Variable B = Variable C.
 
What is it your trying to do with the variables.

collect digits for a, and b, and have them enter into variable c?

I dont think you can collect digits, or have a formula fill out the varaible c field, but there may be some other work around depending on what your trying to do.

RTMCKEE

CM 2.1.1
Prologix R9.05
Modular Messaging 1.1
 
RTMCKEE,

What I want to do is making an assisted PSA login. Starting with an announcement "Enter you ID" then "Enter you Password" without the user needing to remember the functioncode.
 
Interesting Idea. Not sure who you'd use variables to make that happen.

Seems do able out of a vector, but at some point you would need to "route to digits" and you would have had to have put in the FAC for PSA somewhere along the way. You could just tell everyone their password is the FAC + the 4 digit password. For example, mr customer, if you chose 1234 for your password its actually 222 1234 when prompted.

If you figure it out with variables or some combination of variables, be sure to post the results here. I'm always interested in how ppl have used them in programming, expescially outside the box kind of stuff.

RTMCKEE

CM 2.1.1
Prologix R9.05
Modular Messaging 1.1
 
VOiDDude,

in cm3 there are some enhancements to vector processing, including "set" command and some other variable operations. we're all waiting. :)
 


You may have already figured this out, but as you know in CM3.0 variables [A-Z] or the digits buffer can be "set"

Careful though,

set A = B ADD C

is not the same as

set A = B CATR C

ADD'ing and conCATenating are different operations.

In your case when you are building a route-to digit you should use the CATL/CATR operators in the "set" command. Then once you've built up your string of digits (store either in a variable or in the digits buffer) then just perform a "route-to" variable or digits.

The disadvantage to the "set" command is that '*' or other special '~' characters canNOT be stored. Typically numerics [0-9] can be stored. There are some conditions where you can store a '#' but this is only as the first character.

By the way, you want to use a "collect" type variable with a local scope for the "set" command.
 
Can someone copy an example of how they are using this and what for?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top