separating a string into individual icm numbers

Unanswered Question
Sep 16th, 2008
User Badges:

Hi all

Based on a requirement icm is going to get a string value like 88017878|880188|880123 example which are the 3 pstn numbers which i need to send as dynamic label of each phone number and if one phone is busy dialing the second one.Is it possible to seperate these numbers in to individual numbers 88017878,8801188 etc based on the operand |.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
ganeshraghuram Wed, 09/17/2008 - 04:38
User Badges:

Hi Goeff

The substring too has substr(string, start [, length] where string,start digit n length needs to be given.The length in our case is variable as it could be a hand phone number or a land line number.So there is not way i can set the start digit n length there.Even if i am able to filter it out n store it n diffrent variables i can check for the availabilty of the phones n use them accordingly....

The length is optional. If you want the substring from a known (fixed) position to the end of the string of different lengths, then use the substring function that way.

If you need to decompose into fixed,fixed,variable you could use two substring functions in a sequence.

Try this - it can work for you.




This Discussion