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 HussainPosted Aug 12, 2013, 3:08 AM
if(isFound)
{
break;
}
return temp;
Regards,
Iftikar
Lucas MaidmentPosted Aug 12, 2013, 2:50 AM
Will the break work aswell if i execute it inside the method?
Iftikar HussainPosted Aug 12, 2013, 2:48 AM
break;
Regards,
Iftikar
Lucas MaidmentPosted Aug 12, 2013, 2:33 AM
Lucas MaidmentPosted Aug 12, 2013, 2:22 AM
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 MaidmentPosted Aug 12, 2013, 1:08 AM
Works perfect
Iftikar HussainPosted Aug 12, 2013, 1:03 AM
Regards,
Iftikar
Iftikar HussainPosted Aug 12, 2013, 1:02 AM
Regards,
Iftikar
Lucas MaidmentPosted Aug 12, 2013, 12:57 AM
regards, Lucas
Iftikar HussainPosted Aug 12, 2013, 12:53 AM
Regards,
Iftikar
Lucas MaidmentPosted Aug 12, 2013, 12:46 AM
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 HussainPosted Aug 12, 2013, 12:42 AM
Not clear about your query properly. Can you explain bit more and also share the code?
Regards,
Iftikar