micku_100
4th August 2008, 15:14
Hi,
I am facing problem with ask.enum(..) function.
My requirement is on pressing "exit" by user, system should prompt whether to save existing values (yes/no) and if he opts for 'yes' then one function is exceuted.
But in any of the cases system just exits. we tried debuging and in debug we observed system is not entering into if condition and does not execute
function
System even does not print "Hi I am leaving"
Following is my code:
choice.end.program:
before.choice:
message("Hi im leaving")
if ask.enum("tdaccess.data",yesno.yes) = yesno.no then
message("Hi Im leaving")
process.report()
endif
Please suggest.
Regards,
Nilesh
I am facing problem with ask.enum(..) function.
My requirement is on pressing "exit" by user, system should prompt whether to save existing values (yes/no) and if he opts for 'yes' then one function is exceuted.
But in any of the cases system just exits. we tried debuging and in debug we observed system is not entering into if condition and does not execute
function
System even does not print "Hi I am leaving"
Following is my code:
choice.end.program:
before.choice:
message("Hi im leaving")
if ask.enum("tdaccess.data",yesno.yes) = yesno.no then
message("Hi Im leaving")
process.report()
endif
Please suggest.
Regards,
Nilesh