Subject | Re: [IBO] SQLWhereItems to SQLWhere |
---|---|
Author | Jason Wharton |
Post date | 2003-07-10T20:11:30Z |
> Is there a function I can call to to turn a TStings containing 'whereitems' in SQLWhereitems format into SQLWhere strings?
Not that I can think of. It is done internally by IBO. I could possibly make
the code accessible somehow. Of course you can get in under the hood and do
that too if you want. <g> I'd merge in the changes for you.
> Why?up a query and display the results. The call includes various parameters.
>
> Well - I often find I am calling a routine which will create a form, set
I want to construct the where clause using the parameters, but I would
rather not have to create form variables for each parameter so I can pass
them through to the OnPrepareSQL event, or write the code to manage the
wheres and ands, when it may already exist.
>outside the OnPrepareSQL event?
> Might it be a useful future enhancement to make the SQLWhereItems persist
I suggest you use your own sub-class and have a property you use to start
the OnSQLPrepare event by dumping its contents in there. This effectively
would be the same thing.
Jason