How to find out the regularly changing value in a single line?

How to find out the regularly changing value in a single line? Tell me How many ways are there?
Ex: India having 100 crore population now.
here 100 is changing regularly. How to write the Script for this?

Questions by Baleesh

Showing Answers 1 - 6 of 6 Answers

Rakesh Patwa

  • May 22nd, 2014
 

You need to process the string. In this case, you can could no. of text before particular text which you want to extract (in this case, its 100) and then can split the string by SPACE character and finally you will get the value.

There are other ways through we can get the exact value. Above method would be simplest one.

  Was this answer useful?  Yes

selva

  • Jun 6th, 2014
 

Use getROProperty. it is used to get the run time values

  Was this answer useful?  Yes

koti

  • Jul 17th, 2014
 

Code
  1. str="India having 100 crore population now."

  2. for i=1 to len(str)

  3. x=mid(str,i,1)

  4. if Isnumeric(x) then

  5. s=s&x

  6. msgbox s

  7. end if

  8. Next

  Was this answer useful?  Yes

Divya

  • Mar 28th, 2016
 

Code
  1. str="India having 100 crore population now."

  2. newarr=split(str)

  3. For i = 1 To ubound(newarr) Step 1

  4.         If isnumeric(newarr(i-1)) Then

  5.                 msgbox newarr(i-1)

  6.         End If

  7. Next

  Was this answer useful?  Yes

Kishan

  • May 10th, 2016
 

Below is the correct program.

Code
  1. str="India having 148 crore population now."    

  2. set obj=new RegExp

  3. obj.Global=True

  4. obj.Pattern="[0-9]"

  5. set s=obj.Execute(str)

  6. for each x in s

  7. y=y&x

  8. Next

  9. msgbox y

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions