VishalMistry
19th January 2016, 13:33
Hi all,

following is my QKEY code. here i want to execute the if condition portion after "after.input" stardard event,

field.qana:
after.input:
_pobj_exe1("after.input.qana")
if prog.name$ = "tdsls0510m001" then
get.held.price()
| get.discount()

endif
|#pobj added by QKEY 3.72
_pobj_exe1("after.input.qana")

but however i try, the above last two lines get added after my if condition and I am not able to get rid of it. My ultimate goal is my if condition should get executed after standard after.input event so that I can do additional calculation, but somehow I am unable to do it.

Can anybody guide ?

Vishal

mark_h
19th January 2016, 14:52
This is what my code looks like notice in #end after the _pobj line. What I have below is an example from some of my code. Looks like you need #end. The delete the second _pobj. I know if you do not get all your #pobj's and #end's correct qkey compile will do so weird stuff at times.

field.tdilc007.loca:
check.input:
|#call
|#pobj added by QKEY 3.70
_pobj_exe1("check.input.tdilc007.loca")
|#end add by QKEY
select tdilc001.blst, tdilc001.inbl
from tdilc001
where tdilc001._index1= {:tdilc007.cwar, :tdilc007.loca}
selectdo
if tdilc001.blst = tcyesno.yes then
message("Cannot use - Warehouse/Location blocked for all transactions.")
set.input.error("")
endif
endselect
|#pobj added by QKEY 3.70