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
dbz dbzPosted Apr 7, 2016, 6:45 AM
dbz dbzPosted Apr 2, 2016, 10:07 AM
Shubham KumarPosted Apr 2, 2016, 8:32 AM
{
start:
bool a;
a=fetchdata();
if (a == true)// if return something then execute
{
method3();
}
else
{
goto start;
}
}
dbz dbzPosted Apr 2, 2016, 8:18 AM
Shubham KumarPosted Apr 2, 2016, 8:11 AM