Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Fast way to clear params
Thu, Dec 24 2009 9:32 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Is there a fast way to clear all the params for a query? I'm currently doing things like

  if ipForename > 0 then findContact.ParamByName('Forename').AsString := ImportGrid.Cells[ipForename, rCntr] else findContact.ParamByName('Forename').Clear;

because a number of the parameters may not exist. Its in a data import routine so I have to make allowances for some data being supplied an other not.

Roy Lambert
Mon, Dec 28 2009 9:43 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Is there a fast way to clear all the params for a query? I'm currently
doing things like >>

Unfortunately, the only way to do it is to loop through the Params property
and call the Clear method for each parameter.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image