HI, I am using Delphi 7 enterprise OS = Win 2000 Prof I am trying to to use a Tadostoredproc so I can call its parameters using parambyname. My code is something like this. This is a generic Tadostoredproc and I feed it the storedprocedure name via a function.
storedproc.close storedproc.parameters.clear; storedproc.procedurename := thenewprocedurename; storedproc.parameters.refresh; After refreshing my expectation is that the storedproc knows about the parameters names ...but it dos'nt and I get an error message when using storedproc.parambyname['paramname'].value := newvalue This however, storedproc.Parameters[n].Value := newvalue works as expected but I wish to use parambyname to make my code more readable. Am I missing something out ? best wishes Ed

