TMyScript with parameters

TMyScript with parameters

Postby ben » Tue 20 Dec 2005 13:30

I have a TMyScript and I want to use parameters such as

something = :something

so i can say

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

any help?
ben
 
Posts: 119
Joined: Wed 17 Nov 2004 19:48

Postby Ikar » Wed 21 Dec 2005 10:47

Try to attach MyScript to MyQuery by using DataSet property. Then use MyQuery.BeforeOpen event to setup parameters
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby ben » Wed 21 Dec 2005 10:59

too complicated.

is it too difficult to support parameters in TMyScript?
ben
 
Posts: 119
Joined: Wed 17 Nov 2004 19:48

Postby Ikar » Fri 23 Dec 2005 13:48

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
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56


Return to MySQL Data Access Components