APS NZ
asked on
Datasources
I am creating a component in D1 and I have to refer to either
a TTable or TQuery as the Datasource. I have coded the following:
If (DataSource.Dataset as TTable) = ..... then
else
If (DataSource.Dataset as TQuery) = .... then
I have to use that construct several times within the component
and I want to know if there is a simpler way to do it, like by
setting a variable for the (DataSource.Dataset as TTable) or TQuery
part. If so, what type of variable do I need?
Thanks in advance for any help
a TTable or TQuery as the Datasource. I have coded the following:
If (DataSource.Dataset as TTable) = ..... then
else
If (DataSource.Dataset as TQuery) = .... then
I have to use that construct several times within the component
and I want to know if there is a simpler way to do it, like by
setting a variable for the (DataSource.Dataset as TTable) or TQuery
part. If so, what type of variable do I need?
Thanks in advance for any help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER