Page 1 of 1

TMyScript with parameters

Posted: Tue 20 Dec 2005 13:30
by ben
I have a TMyScript and I want to use parameters such as

something = :something

so i can say

.ParamByName(':something').AsDateTime := Now;

any help?

Posted: Wed 21 Dec 2005 10:47
by Ikar
Try to attach MyScript to MyQuery by using DataSet property. Then use MyQuery.BeforeOpen event to setup parameters

Posted: Wed 21 Dec 2005 10:59
by ben
too complicated.

is it too difficult to support parameters in TMyScript?

Posted: Fri 23 Dec 2005 13:48
by Ikar
We have in plans to add this feature, but we can't specify a date. You can vote for TMyScript enhancements on this page http://crlab.com/forums/viewtopic.php?t=1977