the only code im having trouble with is
if (x.Find("Sydney"))
{
}
Just not sure how i call the method or if i have to make my own search?
}
Just not sure how i call the method or if i have to make my own search?

Iftikar HussainRank #423 · 5.9K reputationPosted Aug 11, 2013, 8:42 PM EDT
Not clear about your query properly. Can you explain bit more and also share the code?
Regards,
Iftikar
Lucas Maidment13 reputationPosted Aug 11, 2013, 8:46 PM EDT
i tried to upload but seems i screwed it up lol
If i remember right im supposed to declare a new variable but im completely blank at the moment ><
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 11, 2013, 8:53 PM EDT
Regards,
Iftikar
Lucas Maidment13 reputationPosted Aug 11, 2013, 8:57 PM EDT
regards, Lucas
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 11, 2013, 9:02 PM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 11, 2013, 9:03 PM EDT
Regards,
Iftikar
Lucas Maidment13 reputationPosted Aug 11, 2013, 9:08 PM EDT
Works perfect
Lucas Maidment13 reputationPosted Aug 11, 2013, 10:22 PM EDT
Carrying on from this, is there any way to alter the answer into a method format that will only return the first answer?
Thats my entire code, the only relevant parts are under stage 5 and the findcard method in the creditcard class
It runs fine and returns all matches but i want to make it return only the first
Also is public void FindCard the right way to call the method?
Kind regards, Lucas
Lucas Maidment13 reputationPosted Aug 11, 2013, 10:33 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 11, 2013, 10:48 PM EDT
break;
Regards,
Iftikar
Lucas Maidment13 reputationPosted Aug 11, 2013, 10:50 PM EDT
Will the break work aswell if i execute it inside the method?
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 11, 2013, 11:08 PM EDT
if(isFound)
{
break;
}
return temp;
Regards,
Iftikar