Author |
Message
|
hemantborate |
Posted: Mon Aug 11, 2014 6:52 am Post subject: String checking |
|
|
Newbie
Joined: 11 Aug 2014 Posts: 5
|
How to check one string present on other string or not?
i have 3 GADM code which will be any 4 digit no..right now my code is like
if(GADM=1234 OR GADM=3548) THEN .....
but i want to make it generic so that if GADM code added or removed will not affect on code..
step 1-will place all the GADM codes in one variable of property file GADMCodeVariable='1234,3548,8765'
step 2:i am reading that variable from property file but not able to compare with GADM code it...
Please tell me how should i compare GADM with GADMCodeVariable?? |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 11, 2014 6:55 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
hemantborate |
Posted: Mon Aug 11, 2014 7:07 am Post subject: |
|
|
Newbie
Joined: 11 Aug 2014 Posts: 5
|
IN will not work in this scenario..
'1234,3548,8765' is one string not comma separated value |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 11, 2014 7:15 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
McueMart |
Posted: Tue Aug 12, 2014 12:11 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
|
Back to top |
|
 |
MB Developer |
Posted: Tue Aug 12, 2014 5:04 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
CONTAINS _________________ Thanks.... |
|
Back to top |
|
 |
hemantborate |
Posted: Tue Aug 26, 2014 2:06 pm Post subject: |
|
|
Newbie
Joined: 11 Aug 2014 Posts: 5
|
DONE..Thank You all  |
|
Back to top |
|
 |
|