Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Compare the string in the inputs
Mohan S
Nov 5 2015 2:17 AM
262
Reply
Hi Guys
input1 = CHN-PUN-1234
input2 = Pune
The requirement is to takeout the first 3 char of input2 and check with city in
input1 is same as input2 first three char
string[] check = input1.Split('-');
if (check[1] == input2.Substring(0, check[1].Length))
return 1;
else
return 0;
I have this logic above, could you please help me to modify using the functions.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how can use WEBMAIL
image not display on different computer