SupportTeam Report post Posted 04/09/2004 11:25 PM CHUCHU79 wrote: In there any way to manipulate every single number obtained in the get number module?. I need to route every phone call according to the area code the caller wants to call. I tried with $RV[getnumbers's module title_1_3 or _3_1] to get just a number to start, and it didn't work. If not, is there at least the possibility of comparing the number to a pattern using the logical 'x' which means don't care?. in other words, can I put in the evaluate expression module the $RV_[getnumber module title] and then in the paths section: On 305xxxxxxx GOTO Module n On 786xxxxxxx GOTO Module m I know it doesn't work too, but my question is if there is a way to solve this problem. I hope you could help me. Thanks Share this post Link to post
SupportTeam Report post Posted 04/10/2004 12:48 AM You can use function "left()" in an Evaluate Expression module to just get the first 3 digits of the entered number and then branch to different module based on that result. in the Evaluate Expression module you would just specify: left("$RV[getnumbers's module title]", 3) and then the paths in that module can be: On {305} GOTO [Module x] On {786} GOTO [Module y] Any VB Script type expression can be evaluated using the Evaluate Expression module. The full list of functions/operators/constants/keywords etc which can be used can be found at: http://msdn.microsoft.com/library/en-us/sc...vbscripttoc.asp List of functions which can be used in the Evaluate Expression module: Abs Array Asc Atn CBool CByte CCur CDate CDbl Chr CInt CLng Cos CreateObject CSng CStr Date DateAdd DateDiff DatePart DateSerial DateValue Day Eval Exp Filter Fix FormatCurrency FormatDateTime FormatNumber FormatPercent GetObject GetRef Hex Hour InputBox InStr InStrRev Int IsArray IsDate IsEmpty IsNull IsNumeric IsObject Join LBound LCase Left Len Log LTrim Mid Minute Month MonthName MsgBox Now Oct Replace RGB Right Rnd Round RTrim Second Sgn Sin Space Split Sqr StrComp String StrReverse Tan Time Timer TimeSerial TimeValue Trim TypeName UBound UCase VarType Weekday WeekdayName Year Operators which can be used in Evalute Module's expressions: Addition (+) And Assignment (=) Concatenation (&) Division (/) Eqv Exponentiation (^) Imp Integer Division (\) Is Mod Multiplication (*) Negation (-) Not Or Subtraction (-) Xor Share this post Link to post
SupportTeam Report post Posted 04/10/2004 10:24 PM CHUCHU79 wrote: Thanks for the "left" fuction. I have one more question. What if I need to analize also some middle numbers. For example, the entered number is 3057863557, I can compare the 305 with the Left([fghdkgjkh],3). What about the 786?. I know I can use two modules, but according to my program, this 786 could be at times 2 numbers or one only. Thank you. Share this post Link to post
SupportTeam Report post Posted 04/10/2004 10:29 PM You can use the "mid" function for that. To extract the 3 digits starting with the 4th digit onwards you would use: mid("$RV[getnumbers's module title]", 4, 3) Share this post Link to post