Friday, November 02, 2007

We may use GetOptionalParam and SetOptionalParam methods to access the optional parameters in TClientDataSet instance. However, if we do not know ahead of what parameters are available, these 2 methods serve no purpose to enumerate a list of available parameters.
Unit DBClient.pas defines the following:

We may attempt to use the above definition to enumerate a list of available optional parameters in TClientDataSet instance.
Before we proceed, there is an obstacle to solve. The DSBase property is protected. To overcome it, we can define a class helper function to access the protected property.