TMyScript with parameters

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ben
Posts: 119
Joined: Wed 17 Nov 2004 19:48

TMyScript with parameters

Post by 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?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by 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

ben
Posts: 119
Joined: Wed 17 Nov 2004 19:48

Post by ben » Wed 21 Dec 2005 10:59

too complicated.

is it too difficult to support parameters in TMyScript?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by 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

Post Reply