maneesh_jain
7th July 2008, 18:24
Hi,
I am reading table tfacr200 in one of the funcions in my script. From this function, I call another function and in the second function, I need to read tfacr200 again with some different conditions. What should be the right syntax so that I don't mess up the first selectdo? So, my code is like:
function1()
{
select field1, field2
from tfacr200
where tfacr200_index2 = {:val1, val2...}
selectdo
function2()
endselect
}
function2()
{
select field3, field4
from tfacr200
where tfacr200_index1 = {:val3, val4...}
selectdo
endselect
}
I am reading table tfacr200 in one of the funcions in my script. From this function, I call another function and in the second function, I need to read tfacr200 again with some different conditions. What should be the right syntax so that I don't mess up the first selectdo? So, my code is like:
function1()
{
select field1, field2
from tfacr200
where tfacr200_index2 = {:val1, val2...}
selectdo
function2()
endselect
}
function2()
{
select field3, field4
from tfacr200
where tfacr200_index1 = {:val3, val4...}
selectdo
endselect
}