Hi Guys,
I'm having a trouble in stop or repeating a method after another method is failed...
what is my code :-
void method1()
{ //code }
void method2()
{ fetchdata() }
void method3()
{ fetchdata2() }
void fetchdata()
{ //code }
void fetchdata2()
{ //code }
void button_click()
{ method1(); method2(); method3(); }
so my issue is if fetchdata1() returns null then either process repeat itself or stop don't go to method3() and forward.
Can anybody help me please.. Thanks

Shubham KumarRank #621 · 3.8K reputationPosted Apr 2, 2016, 4:11 AM EDT
dbz dbz14 reputationPosted Apr 2, 2016, 4:18 AM EDT
Shubham KumarRank #621 · 3.8K reputationPosted Apr 2, 2016, 4:32 AM EDT
{
start:
bool a;
a=fetchdata();
if (a == true)// if return something then execute
{
method3();
}
else
{
goto start;
}
}
dbz dbz14 reputationPosted Apr 2, 2016, 6:07 AM EDT
dbz dbz14 reputationPosted Apr 7, 2016, 2:45 AM EDT