Andron
21st March 2003, 08:12
table tabA |Main table
|field tabA.F1, F2 is primary key of tabA
table tabB
|field tabB.F2 is primary key of tabB
before.program:
N=argv$(1) - export from other session
|This is don't work correctly
query.extension="tabA.F1=:N and tabB.F2=:tabA.F2 and tabB.F3 = const1"
*********** OR **************
|It works correctly
main.table.io:
after.read:
select tabB.F3 from tabB
where tabB.F2=:tabA.F2
selectdo
if tabB.F3 <> const1 then
skip.io("")
endif
endselect
How correctly to design query.extension in section "before.program"?
|field tabA.F1, F2 is primary key of tabA
table tabB
|field tabB.F2 is primary key of tabB
before.program:
N=argv$(1) - export from other session
|This is don't work correctly
query.extension="tabA.F1=:N and tabB.F2=:tabA.F2 and tabB.F3 = const1"
*********** OR **************
|It works correctly
main.table.io:
after.read:
select tabB.F3 from tabB
where tabB.F2=:tabA.F2
selectdo
if tabB.F3 <> const1 then
skip.io("")
endif
endselect
How correctly to design query.extension in section "before.program"?