Subject Re: [IBO] IB_DateTimePicker question
Author Geoff Worboys
You imply that you are using TIB_DateTimePicker, but then you are
attempting to use the contents of the control to assign parameters.
This appears to be a contradication.

Most of the IBO-aware controls have their value (Text) properties
hidden, because they should not be read/assigned directly. So if you
are truly using a TIB_DateTimePicker then you need to read the value
from the column of the associated dataset.

If are you wanting to provide the user with the means of inputing
parameters to a query then you have two possibilities...

1. in IBO4 there is a fairly new feature, where you can assign the
required parameter name to the ParamName property of the control
(there is currently no picklist, you must type the parameter name).
This will override the DataField property and associate the control
with the specified parameter. NOTE: This is not well tested and may
still have some glitches.


2. use a non-IBO-aware version of the control and assign parameters
as you were doing in your example code.

If you use option 1 and want to check if the parameter has been
assigned, then check the contents of the parameter (or IsNull
property) and not the control.


Geoff Worboys
Telesis Computing